public abstract class Struct.PointerField extends Struct.NumberField
type| Constructor and Description |
|---|
PointerField()
Creates a new Address field.
|
PointerField(Struct.Offset offset) |
| Modifier and Type | Method and Description |
|---|---|
protected Pointer |
getPointer()
Gets the
Pointer value from the native memory. |
int |
intValue()
Returns an integer representation of this
Pointer. |
long |
longValue()
Returns an
long representation of this Pointer. |
void |
set(Number value)
Sets the field to a new value.
|
void |
set(Pointer value)
Puts a
Address value into the native memory. |
int |
size()
Gets the size of a Pointer in bits
|
String |
toString()
Returns a string representation of this
Pointer. |
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, structpublic PointerField()
public PointerField(Struct.Offset offset)
protected final Pointer getPointer()
Pointer value from the native memory.Pointer.public final int size()
public final void set(Pointer value)
Address value into the native memory.value - the value to write.public void set(Number value)
Struct.NumberFieldset in class Struct.NumberFieldvalue - The new value.public int intValue()
Pointer.intValue in class Struct.NumberFieldPointer.public long longValue()
long representation of this Pointer.longValue in class Struct.NumberFieldlong value for this Pointer.public String toString()
Pointer.toString in class Struct.NumberFieldPointer.Copyright © 2017. All rights reserved.