Class StructLayout.Enum8<E extends Enum<E>>
java.lang.Object
jnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
jnr.ffi.StructLayout.EnumField<E>
jnr.ffi.StructLayout.Enum8<E>
- Type Parameters:
E- theEnumto translate to/from.
- Enclosing class:
StructLayout
An 8 bit enum field.
-
Field Summary
Fields inherited from class StructLayout.EnumField
enumClass, enumMapperFields inherited from class StructLayout.NumberField
type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class StructLayout.EnumField
get, toStringMethods inherited from class StructLayout.NumberField
byteValue, doubleValue, floatValue, longValue, shortValueMethods inherited from class StructLayout.Field
enclosing, offset
-
Constructor Details
-
Enum8
-
Enum8
Creates a new 8 bit enum field.- Parameters:
enumClass- the class of theEnum.offset- the offset of the enum field.
-
-
Method Details
-
set
-
set
Description copied from class:StructLayout.NumberFieldSets the field to a new value.- Specified by:
setin classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.value- The new value.
-
intValue
Returns an integer representation of this enum field.- Specified by:
intValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- an integer value for this enum field.
-