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 Pointer
get()
Gets thePointer
value from the native memory.final int
intValue()
Returns an integer representation of thisPointer
.final long
Returns anlong
representation of thisPointer
.final 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 Details
-
Pointer
public Pointer()Creates a newAddress
field. -
Pointer
-
-
Method Details
-
get
Gets thePointer
value from the native memory.- Returns:
- a
Pointer
.
-
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
Returns a string representation of thisPointer
.- Overrides:
toString
in classStruct.PointerField
- Returns:
- a string representation of this
Pointer
.
-