public class Struct.Unsigned16 extends Struct.NumberField
type
Constructor and Description |
---|
Unsigned16()
Creates a new 16 bit integer field.
|
Unsigned16(Struct.Offset offset)
Creates a new 16 bit unsigned integer field at a specific offset
|
Modifier and Type | Method and Description |
---|---|
int |
get()
Gets the value for this field.
|
int |
intValue()
Returns a java int representation of this field.
|
void |
set(int value)
Sets the value for this field.
|
void |
set(Number value)
Sets the field to a new value.
|
byteValue, doubleValue, floatValue, getMemory, longValue, offset, shortValue, struct, toString
public Unsigned16()
public Unsigned16(Struct.Offset offset)
offset
- The offset within the memory area for this field.public final int get()
public final void set(int value)
value
- the 16 bit unsigned 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
Copyright © 2017. All rights reserved.