java.lang.Object
jnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.EnumField<E>
jnr.ffi.Struct.Enum64<E>
- Enclosing class:
- Struct
-
Field Summary
Fields inherited from class jnr.ffi.Struct.EnumField
enumClass
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jnr.ffi.Struct.EnumField
toString
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
-
Constructor Details
-
Enum64
-
-
Method Details
-
get
Description copied from class:Struct.EnumField
Gets a java Enum value representing the native integer value.- Specified by:
get
in classStruct.EnumField<E extends Enum<E>>
- Returns:
- a java Enum value.
-
set
-
set
Description copied from class:Struct.NumberField
Sets the field to a new value.- Specified by:
set
in classStruct.NumberField
- Parameters:
value
- The new value.
-
intValue
public final int intValue()Description copied from class:Struct.NumberField
Returns aint
representation of thisNumber
.- Specified by:
intValue
in classStruct.NumberField
- Returns:
- a
int
value for thisNumber
.
-
longValue
public final long longValue()Description copied from class:Struct.NumberField
Returns along
representation of thisNumber
.- Overrides:
longValue
in classStruct.NumberField
- Returns:
- a
long
value for thisNumber
.
-