public class StructLayout.Signed8 extends StructLayout.NumberField
type| Constructor and Description |
|---|
StructLayout.Signed8()
Creates a new 8 bit integer field.
|
StructLayout.Signed8(StructLayout.Offset offset)
Creates a new 8 bit integer field at a specific offset
|
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue(Pointer ptr)
Returns a java byte representation of this field.
|
byte |
get(Pointer ptr)
Gets the value for this field.
|
int |
intValue(Pointer ptr)
Returns a java int representation of this field.
|
void |
set(Pointer ptr,
byte value)
Sets the value for this field.
|
void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
short |
shortValue(Pointer ptr)
Returns a java short representation of this field.
|
doubleValue, floatValue, longValue, toStringenclosing, offsetpublic StructLayout.Signed8()
public StructLayout.Signed8(StructLayout.Offset offset)
offset - The offset within the memory areapublic final byte get(Pointer ptr)
public final void set(Pointer ptr, byte value)
ptr - The memory to set the value in.value - the 8 bit value to set.public void set(Pointer ptr, Number value)
StructLayout.NumberFieldset in class StructLayout.NumberFieldvalue - The new value.public final byte byteValue(Pointer ptr)
byteValue in class StructLayout.NumberFieldpublic final short shortValue(Pointer ptr)
shortValue in class StructLayout.NumberFieldpublic final int intValue(Pointer ptr)
intValue in class StructLayout.NumberFieldCopyright © 2013. All rights reserved.