public class StructLayout.Pointer extends StructLayout.NumberField
type
Constructor and Description |
---|
StructLayout.Pointer()
Creates a new Address field.
|
StructLayout.Pointer(Struct.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, shortValue
enclosing, offset
public StructLayout.Pointer()
public StructLayout.Pointer(Struct.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.NumberField
set
in class StructLayout.NumberField
value
- The new value.public final int intValue(Pointer ptr)
Pointer
.intValue
in class StructLayout.NumberField
Pointer
.public final long longValue(Pointer ptr)
long
representation of this Pointer
.longValue
in class StructLayout.NumberField
long
value for this Pointer
.public final String toString(Pointer ptr)
Pointer
.toString
in class StructLayout.NumberField
Pointer
.Copyright © 2013. All Rights Reserved.