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 jnr.ffi.StructLayout.EnumField
enumClass, enumMapperFields inherited from class jnr.ffi.StructLayout.NumberField
type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jnr.ffi.StructLayout.EnumField
get, toStringMethods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, doubleValue, floatValue, longValue, shortValueMethods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
Constructor Details
-
Method Details
-
set
Sets the native integer value using a java Enum value.- Parameters:
ptr- The pointer to the field.value- the javaEnumvalue.
-
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.
-