- 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 newAddressfield.Pointer(Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointerget()Gets thePointervalue from the native memory.intintValue()Returns an integer representation of thisPointer.longlongValue()Returns anlongrepresentation of thisPointer.StringtoString()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 newAddressfield.
-
Pointer
public Pointer(Struct.Offset offset)
-
-
Method Detail
-
intValue
public final int intValue()
Returns an integer representation of thisPointer.- Overrides:
intValuein classStruct.PointerField- Returns:
- an integer value for this
Pointer.
-
longValue
public final long longValue()
Returns anlongrepresentation of thisPointer.- Overrides:
longValuein classStruct.PointerField- Returns:
- an
longvalue for thisPointer.
-
toString
public final String toString()
Returns a string representation of thisPointer.- Overrides:
toStringin classStruct.PointerField- Returns:
- a string representation of this
Pointer.
-
-