public class StructLayout.Pointer extends StructLayout.NumberField
type| Constructor and Description |
|---|
StructLayout.Pointer()
Creates a new Address field.
|
StructLayout.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 StructLayout.Pointer()
public StructLayout.Pointer(StructLayout.Offset offset)
public final Pointer get(Pointer ptr)
Pointer value from the native memory.Pointer.public final int size()
public void set(Pointer ptr, Number value)
StructLayout.NumberFieldset in class StructLayout.NumberFieldvalue - The new value.public final int intValue(Pointer ptr)
Pointer.intValue in class StructLayout.NumberFieldPointer.public final long longValue(Pointer ptr)
long representation of this Pointer.longValue in class StructLayout.NumberFieldlong value for this Pointer.public final String toString(Pointer ptr)
Pointer.toString in class StructLayout.NumberFieldPointer.Copyright © 2013. All rights reserved.