Package jnr.ffi
Class Struct.Pointer
- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.NumberField
-
- jnr.ffi.Struct.PointerField
-
- jnr.ffi.Struct.Pointer
-
- Enclosing class:
- Struct
public class Struct.Pointer extends Struct.PointerField
Represents a native memory address.
-
-
Field Summary
-
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
-
Constructor Summary
Constructors Constructor Description Pointer()
Creates a newAddress
field.Pointer(Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointer
get()
Gets thePointer
value from the native memory.int
intValue()
Returns an integer representation of thisPointer
.long
longValue()
Returns anlong
representation of thisPointer
.java.lang.String
toString()
Returns a string representation of thisPointer
.-
Methods inherited from class jnr.ffi.Struct.PointerField
getPointer, set, set, size
-
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
-
-
-
-
Constructor Detail
-
Pointer
public Pointer()
Creates a newAddress
field.
-
Pointer
public Pointer(Struct.Offset offset)
-
-
Method Detail
-
intValue
public final int intValue()
Returns an integer representation of thisPointer
.- Overrides:
intValue
in classStruct.PointerField
- Returns:
- an integer value for this
Pointer
.
-
longValue
public final long longValue()
Returns anlong
representation of thisPointer
.- Overrides:
longValue
in classStruct.PointerField
- Returns:
- an
long
value for thisPointer
.
-
toString
public final java.lang.String toString()
Returns a string representation of thisPointer
.- Overrides:
toString
in classStruct.PointerField
- Returns:
- a string representation of this
Pointer
.
-
-