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
Represents a native memory address.
-
Field Summary
Fields inherited from class jnr.ffi.Struct.NumberField
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Pointerget()Gets thePointervalue from the native memory.final intintValue()Returns an integer representation of thisPointer.final longReturns anlongrepresentation of thisPointer.final StringtoString()Returns a string representation of thisPointer.Methods inherited from class jnr.ffi.Struct.PointerField
getPointer, set, set, sizeMethods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
-
Constructor Details
-
Pointer
public Pointer()Creates a newAddressfield. -
Pointer
-
-
Method Details
-
get
Gets thePointervalue from the native memory.- Returns:
- a
Pointer.
-
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
Returns a string representation of thisPointer.- Overrides:
toStringin classStruct.PointerField- Returns:
- a string representation of this
Pointer.
-