public class Struct.Signed8 extends Struct.NumberField
type| 构造器和说明 |
|---|
Signed8()
Creates a new 8 bit integer field.
|
Signed8(Struct.Offset offset)
Creates a new 8 bit integer field at a specific offset
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte |
byteValue()
Returns a java byte representation of this field.
|
byte |
get()
Gets the value for this field.
|
int |
intValue()
Returns a java int representation of this field.
|
void |
set(byte value)
Sets the value for this field.
|
void |
set(Number value)
Sets the field to a new value.
|
short |
shortValue()
Returns a java short representation of this field.
|
doubleValue, floatValue, getMemory, longValue, offset, struct, toStringpublic Signed8()
public Signed8(Struct.Offset offset)
offset - The offset within the memory areapublic final byte get()
public final void set(byte value)
value - the 8 bit value to set.public void set(Number value)
Struct.NumberFieldset 在类中 Struct.NumberFieldvalue - The new value.public final byte byteValue()
byteValue 在类中 Struct.NumberFieldpublic final short shortValue()
shortValue 在类中 Struct.NumberFieldpublic final int intValue()
intValue 在类中 Struct.NumberFieldCopyright © 2021. All rights reserved.