|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
jnr.ffi.StructLayout.EnumField<E>
jnr.ffi.StructLayout.Enum8<E>
E - the Enum to translate to/from.public class StructLayout.Enum8<E extends java.lang.Enum<E>>
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 | |
|---|---|
StructLayout.Enum8(java.lang.Class<E> enumClass)
Creates a new 8 bit enum field. |
|
| Method Summary | |
|---|---|
int |
intValue(Pointer ptr)
Returns an integer representation of this enum field. |
void |
set(Pointer ptr,
E value)
Sets the native integer value using a java Enum value. |
void |
set(Pointer ptr,
java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructLayout.Enum8(java.lang.Class<E> enumClass)
enumClass - the class of the Enum.| Method Detail |
|---|
public final void set(Pointer ptr,
E value)
value - the java Enum value.
public void set(Pointer ptr,
java.lang.Number value)
StructLayout.NumberField
set in class StructLayout.NumberFieldvalue - The new value.public final int intValue(Pointer ptr)
intValue in class StructLayout.NumberField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||