public class Struct.Pointer extends Struct.NumberField
type| Constructor and Description |
|---|
Pointer()
Creates a new Address field.
|
Pointer(Struct.Offset offset) |
| Modifier and Type | Method and Description |
|---|---|
Pointer |
get()
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 Pointer()
public Pointer(Struct.Offset offset)
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 final int intValue()
Pointer.intValue in class Struct.NumberFieldPointer.public final long longValue()
long representation of this Pointer.longValue in class Struct.NumberFieldlong value for this Pointer.public final String toString()
Pointer.toString in class Struct.NumberFieldPointer.Copyright © 2016. All rights reserved.