- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.AbstractMember
-
- jnr.ffi.Struct.AbstractBoolean
-
- jnr.ffi.Struct.Boolean
-
- Enclosing class:
- Struct
public final class Struct.Boolean extends Struct.AbstractBoolean
A normal C boolean - 1 byte in size
-
-
Constructor Summary
Constructors Constructor Description Boolean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget()Gets the value for this field.voidset(boolean value)Sets the field to a new value.-
Methods inherited from class jnr.ffi.Struct.AbstractBoolean
toString
-
Methods inherited from class jnr.ffi.Struct.AbstractMember
getMemory, offset, struct
-
-
-
-
Method Detail
-
get
public final boolean get()
Description copied from class:Struct.AbstractBooleanGets the value for this field.- Specified by:
getin classStruct.AbstractBoolean- Returns:
- a boolean.
-
set
public final void set(boolean value)
Description copied from class:Struct.AbstractBooleanSets the field to a new value.- Specified by:
setin classStruct.AbstractBoolean- Parameters:
value- The new value.
-
-