public class Struct.Unsigned32 extends Struct.NumberField
type| Constructor and Description |
|---|
Unsigned32()
Creates a new 32 bit integer field.
|
Unsigned32(Struct.Offset offset)
Creates a new 32 bit unsigned integer 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, structpublic Unsigned32()
public Unsigned32(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 bit unsigned value to set.public void set(Number value)
Struct.NumberFieldset in class Struct.NumberFieldvalue - The new value.public final int intValue()
intValue in class Struct.NumberFieldpublic final long longValue()
longValue in class Struct.NumberFieldpublic final String toString()
toString in class Struct.NumberFieldCopyright © 2017. All rights reserved.