java.lang.Object
jnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
jnr.ffi.StructLayout.EnumField<E>
jnr.ffi.StructLayout.Enum8<E>
- Type Parameters:
E
- theEnum
to translate to/from.
- Enclosing class:
StructLayout
An 8 bit enum field.
-
Field Summary
Fields inherited from class jnr.ffi.StructLayout.EnumField
enumClass, enumMapper
Fields inherited from class jnr.ffi.StructLayout.NumberField
type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jnr.ffi.StructLayout.EnumField
get, toString
Methods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, doubleValue, floatValue, longValue, shortValue
Methods 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 javaEnum
value.
-
set
Description copied from class:StructLayout.NumberField
Sets the field to a new value.- Specified by:
set
in classStructLayout.NumberField
- Parameters:
ptr
- The pointer to the field.value
- The new value.
-
intValue
Returns an integer representation of this enum field.- Specified by:
intValue
in classStructLayout.NumberField
- Parameters:
ptr
- The pointer to the field.- Returns:
- an integer value for this enum field.
-