public class Struct.Pointer extends Struct.NumberField
Constructor and Description |
---|
Struct.Pointer()
Creates a new Address field.
|
Struct.Pointer(Struct.Offset offset) |
Modifier and Type | Method and Description |
---|---|
Pointer |
get()
Gets the
com.googlecode.jffi.Address 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(java.lang.Number value)
Sets the field to a new value.
|
void |
set(Pointer value)
Puts a
com.googlecode.jffi.Address value into the native memory. |
int |
size()
Gets the size of a Pointer in bits
|
java.lang.String |
toString()
Returns a string representation of this
Pointer . |
doubleValue, floatValue, getMemoryIO, offset, struct
public Struct.Pointer()
public Struct.Pointer(Struct.Offset offset)
public final Pointer get()
com.googlecode.jffi.Address
value from the native memory.com.googlecode.jffi.Address
.public final int size()
public final void set(Pointer value)
com.googlecode.jffi.Address
value into the native memory.public void set(java.lang.Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final int intValue()
Pointer
.intValue
in class java.lang.Number
Pointer
.public final long longValue()
long
representation of this Pointer
.longValue
in class Struct.NumberField
long
value for this Pointer
.public final java.lang.String toString()
Pointer
.toString
in class Struct.NumberField
Pointer
.