public class Struct.Signed16 extends Struct.NumberField
type| 构造器和说明 |
|---|
Signed16()
Creates a new 16 bit integer field.
|
Signed16(Struct.Offset offset)
Creates a new 16 bit signed integer field at a specific offset
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, toStringpublic Signed16()
public Signed16(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 16 bit value to set.public void set(Number value)
Struct.NumberFieldset 在类中 Struct.NumberFieldvalue - The new value.public final short shortValue()
shortValue 在类中 Struct.NumberFieldpublic final int intValue()
intValue 在类中 Struct.NumberFieldCopyright © 2021. All rights reserved.