Package jnr.ffi
Class StructLayout.AbstractBoolean
- java.lang.Object
-
- jnr.ffi.StructLayout.Field
-
- jnr.ffi.StructLayout.AbstractField
-
- jnr.ffi.StructLayout.AbstractBoolean
-
- Direct Known Subclasses:
StructLayout.BOOL16,StructLayout.Boolean,StructLayout.WBOOL
- Enclosing class:
- StructLayout
protected abstract class StructLayout.AbstractBoolean extends StructLayout.AbstractField
Base class for Boolean fields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBoolean(NativeType type)protectedAbstractBoolean(NativeType type, StructLayout.Offset offset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanget(Pointer ptr)Gets the value for this field.abstract voidset(Pointer ptr, boolean value)Sets the field to a new value.StringtoString(Pointer ptr)Returns a string representation of thisBoolean.-
Methods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
-
-
-
Constructor Detail
-
AbstractBoolean
protected AbstractBoolean(NativeType type)
-
AbstractBoolean
protected AbstractBoolean(NativeType type, StructLayout.Offset offset)
-
-
Method Detail
-
get
public abstract boolean get(Pointer ptr)
Gets the value for this field.- Parameters:
ptr- The pointer to the field.- Returns:
- a boolean.
-
set
public abstract void set(Pointer ptr, boolean value)
Sets the field to a new value.- Parameters:
ptr- The pointer to the field.value- The new value.
-
-