public class Struct.SignedLong extends Struct.NumberField
type
Constructor and Description |
---|
SignedLong()
Creates a new native long field.
|
SignedLong(Struct.Offset offset)
Creates a new signed native long field at a specific offset
|
Modifier and Type | Method and Description |
---|---|
long |
get()
Gets the value for this field.
|
int |
intValue()
Returns a java int representation of this field.
|
long |
longValue()
Returns a java long representation of this field.
|
void |
set(long value)
Sets the value for this field.
|
void |
set(Number value)
Sets the field to a new value.
|
String |
toString()
Returns a string representation of this field.
|
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
public SignedLong()
public SignedLong(Struct.Offset offset)
offset
- The offset within the memory area for this field.public final long get()
public final void set(long value)
value
- the 32/64 bit value to set.public void set(Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final int intValue()
intValue
in class Struct.NumberField
public final long longValue()
longValue
in class Struct.NumberField
public final String toString()
toString
in class Struct.NumberField
Copyright © 2017. All rights reserved.