public class Struct.UnsignedLong extends Struct.NumberField
| Constructor and Description |
|---|
Struct.UnsignedLong()
Creates a new native long field.
|
Struct.UnsignedLong(Struct.Offset offset)
Creates a new unsigned 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(java.lang.Number value)
Sets the field to a new value.
|
java.lang.String |
toString()
Returns a string representation of this field.
|
doubleValue, floatValue, getMemoryIO, offset, structpublic Struct.UnsignedLong()
public Struct.UnsignedLong(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(java.lang.Number value)
Struct.NumberFieldset in class Struct.NumberFieldvalue - The new value.public final int intValue()
intValue in class java.lang.Numberpublic final long longValue()
longValue in class Struct.NumberFieldpublic final java.lang.String toString()
toString in class Struct.NumberField