java.lang.Object
jnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.EnumField<E>
jnr.ffi.Struct.Enum32<E>
- Direct Known Subclasses:
Struct.Enum
- Enclosing class:
- Struct
-
Field Summary
Fields inherited from class jnr.ffi.Struct.EnumField
enumClassFields inherited from class jnr.ffi.Struct.NumberField
type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jnr.ffi.Struct.EnumField
toStringMethods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, longValue, offset, shortValue, struct
-
Constructor Details
-
Enum32
-
-
Method Details
-
get
Description copied from class:Struct.EnumFieldGets a java Enum value representing the native integer value.- Specified by:
getin classStruct.EnumField<E extends Enum<E>>- Returns:
- a java Enum value.
-
set
-
set
Description copied from class:Struct.NumberFieldSets the field to a new value.- Specified by:
setin classStruct.NumberField- Parameters:
value- The new value.
-
intValue
public final int intValue()Description copied from class:Struct.NumberFieldReturns aintrepresentation of thisNumber.- Specified by:
intValuein classStruct.NumberField- Returns:
- a
intvalue for thisNumber.
-