|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
jnr.ffi.StructLayout.Pointer
public class StructLayout.Pointer
Represents a native memory address.
| Field Summary |
|---|
| Fields inherited from class jnr.ffi.StructLayout.NumberField |
|---|
type |
| Constructor Summary | |
|---|---|
StructLayout.Pointer()
Creates a new Address field. |
|
StructLayout.Pointer(Struct.Offset offset)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class jnr.ffi.StructLayout.NumberField |
|---|
byteValue, doubleValue, floatValue, shortValue |
| Methods inherited from class jnr.ffi.StructLayout.Field |
|---|
enclosing, offset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructLayout.Pointer()
public StructLayout.Pointer(Struct.Offset offset)
| Method Detail |
|---|
public final Pointer get(Pointer ptr)
Pointer value from the native memory.
Pointer.public final int size()
public final void set(Pointer ptr,
Pointer value)
Pointer value in the native memory.
public void set(Pointer ptr,
Number value)
StructLayout.NumberField
set in class StructLayout.NumberFieldvalue - The new value.public final int intValue(Pointer ptr)
Pointer.
intValue in class StructLayout.NumberFieldPointer.public final long longValue(Pointer ptr)
long representation of this Pointer.
longValue in class StructLayout.NumberFieldlong value for this Pointer.public final String toString(Pointer ptr)
Pointer.
toString in class StructLayout.NumberFieldPointer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||