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, struct
public 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.NumberField
set
in class Struct.NumberField
value
- The new value.public int intValue()
Pointer
.intValue
in class Struct.NumberField
Pointer
.public long longValue()
long
representation of this Pointer
.longValue
in class Struct.NumberField
long
value for this Pointer
.public String toString()
Pointer
.toString
in class Struct.NumberField
Pointer
.Copyright © 2017. All rights reserved.