public class StructLayout.Signed8 extends StructLayout.NumberField
type| 构造器和说明 |
|---|
Signed8()
Creates a new 8 bit integer field.
|
Signed8(StructLayout.Offset offset)
Creates a new 8 bit integer field at a specific offset
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 StructLayout.NumberFieldptr - The pointer to the field.value - The new value.public final byte byteValue(Pointer ptr)
byteValue 在类中 StructLayout.NumberFieldptr - The pointer to the field.public final short shortValue(Pointer ptr)
shortValue 在类中 StructLayout.NumberFieldptr - The pointer to the field.public final int intValue(Pointer ptr)
intValue 在类中 StructLayout.NumberFieldptr - The pointer to the field.Copyright © 2021. All rights reserved.