- java.lang.Object
-
- jnr.ffi.StructLayout.Field
-
- jnr.ffi.StructLayout.NumberField
-
- jnr.ffi.StructLayout.EnumField<E>
-
- jnr.ffi.StructLayout.Enum16<E>
-
- Enclosing class:
- StructLayout
public class StructLayout.Enum16<E extends Enum<E>> extends StructLayout.EnumField<E>
-
-
Field Summary
-
Fields inherited from class jnr.ffi.StructLayout.EnumField
enumClass, enumMapper
-
Fields inherited from class jnr.ffi.StructLayout.NumberField
type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intintValue(Pointer ptr)Returns aintrepresentation of thisNumber.voidset(Pointer ptr, E value)voidset(Pointer ptr, Number value)Sets the field to a new value.-
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 Detail
-
Enum16
public Enum16(Class<E> enumClass, StructLayout.Offset offset)
-
-
Method Detail
-
set
public void set(Pointer ptr, Number value)
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
public final int intValue(Pointer ptr)
Description copied from class:StructLayout.NumberFieldReturns aintrepresentation of thisNumber.- Specified by:
intValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- a
intvalue for thisNumber.
-
-