java.lang.Object
jnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.PointerField
jnr.ffi.Struct.StructRef<T>
- Type Parameters:
T
- - Struct type
- Enclosing class:
- Struct
Represents a reference to a Struct or and array of Structs
-
Field Summary
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jnr.ffi.Struct.PointerField
getPointer, intValue, longValue, set, set, size
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
-
Constructor Details
-
StructRef
-
StructRef
- Parameters:
structType
- Struct typeinitialStructCount
- the number of struct instances. Use this to allocate memory without setting value.
-
StructRef
-
StructRef
- Parameters:
offset
- offset of the fieldstructType
- Struct typeinitialStructCount
- the number of struct instances. Use this to allocate memory without setting value.
-
-
Method Details
-
set
-
set
-
get
- Returns:
- struct from memory
-
get
- Parameters:
length
- the length of struct in memory to get- Returns:
- struct from memory
-
toString
Description copied from class:Struct.PointerField
Returns a string representation of thisPointer
.- Overrides:
toString
in classStruct.PointerField
- Returns:
- a string representation of this
Pointer
.
-