Package jnr.ffi
Class StructLayout.Boolean
- java.lang.Object
-
- jnr.ffi.StructLayout.Field
-
- jnr.ffi.StructLayout.AbstractField
-
- jnr.ffi.StructLayout.AbstractBoolean
-
- jnr.ffi.StructLayout.Boolean
-
- Enclosing class:
- StructLayout
protected final class StructLayout.Boolean extends StructLayout.AbstractBoolean
A normal C boolean - 1 byte in size
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBoolean()protectedBoolean(StructLayout.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget(Pointer ptr)Gets the value for this field.voidset(Pointer ptr, boolean value)Sets the field to a new value.-
Methods inherited from class jnr.ffi.StructLayout.AbstractBoolean
toString
-
Methods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
-
-
-
Constructor Detail
-
Boolean
protected Boolean()
-
Boolean
protected Boolean(StructLayout.Offset offset)
-
-
Method Detail
-
get
public final boolean get(Pointer ptr)
Description copied from class:StructLayout.AbstractBooleanGets the value for this field.- Specified by:
getin classStructLayout.AbstractBoolean- Parameters:
ptr- The pointer to the field.- Returns:
- a boolean.
-
set
public final void set(Pointer ptr, boolean value)
Description copied from class:StructLayout.AbstractBooleanSets the field to a new value.- Specified by:
setin classStructLayout.AbstractBoolean- Parameters:
ptr- The pointer to the field.value- The new value.
-
-