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 protected
Boolean()
protected
Boolean(StructLayout.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
get(Pointer ptr)
Gets the value for this field.void
set(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.AbstractBoolean
Gets the value for this field.- Specified by:
get
in 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.AbstractBoolean
Sets the field to a new value.- Specified by:
set
in classStructLayout.AbstractBoolean
- Parameters:
ptr
- The pointer to the field.value
- The new value.
-
-