public class StructLayout.Pointer extends StructLayout.NumberField
type| Constructor and Description |
|---|
Pointer()
Creates a new Address field.
|
Pointer(StructLayout.Offset offset) |
| Modifier and Type | Method and Description |
|---|---|
Pointer |
get(Pointer ptr)
Gets the
Pointer value from the native memory. |
int |
intValue(Pointer ptr)
Returns an integer representation of this
Pointer. |
long |
longValue(Pointer ptr)
Returns an
long representation of this Pointer. |
void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
void |
set(Pointer ptr,
Pointer value)
Sets a
Pointer value in the native memory. |
int |
size()
Gets the size of a Pointer in bits
|
String |
toString(Pointer ptr)
Returns a string representation of this
Pointer. |
byteValue, doubleValue, floatValue, shortValueenclosing, offsetpublic Pointer()
public Pointer(StructLayout.Offset offset)
public final Pointer get(Pointer ptr)
Pointer value from the native memory.ptr - The pointer to the field.Pointer.public final int size()
public final void set(Pointer ptr, Pointer value)
Pointer value in the native memory.ptr - The pointer to the write location.value - The 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 int intValue(Pointer ptr)
Pointer.intValue in class StructLayout.NumberFieldptr - The pointer to the field.Pointer.public final long longValue(Pointer ptr)
long representation of this Pointer.longValue in class StructLayout.NumberFieldptr - The pointer to the field.long value for this Pointer.public final String toString(Pointer ptr)
Pointer.toString in class StructLayout.NumberFieldptr - The pointer to the field.Pointer.Copyright © 2017. All rights reserved.