public class Struct.Unsigned32 extends Struct.NumberField
Constructor and Description |
---|
Struct.Unsigned32()
Creates a new 32 bit integer field.
|
Struct.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(java.lang.Number value)
Sets the field to a new value.
|
doubleValue, floatValue, getMemoryIO, offset, struct, toString
public Struct.Unsigned32()
public Struct.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(java.lang.Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final int intValue()
intValue
in class java.lang.Number
public final long longValue()
longValue
in class Struct.NumberField