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