public class StructLayout.Signed8 extends StructLayout.NumberField
type| Constructor and Description |
|---|
Signed8()
Creates a new 8 bit integer field.
|
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 Signed8()
public Signed8(StructLayout.Offset offset)
offset - The offset within the memory areapublic final byte get(Pointer ptr)
ptr - The pointer to the field.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.NumberFieldptr - The pointer to the field.value - The new value.public final byte byteValue(Pointer ptr)
byteValue in class StructLayout.NumberFieldptr - The pointer to the field.public final short shortValue(Pointer ptr)
shortValue in class StructLayout.NumberFieldptr - The pointer to the field.public final int intValue(Pointer ptr)
intValue in class StructLayout.NumberFieldptr - The pointer to the field.Copyright © 2017. All rights reserved.