Package jnr.ffi
Class Struct.Boolean
- 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 boolean
get()
Gets the value for this field.void
set(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.AbstractBoolean
Gets the value for this field.- Specified by:
get
in classStruct.AbstractBoolean
- Returns:
- a boolean.
-
set
public final void set(boolean value)
Description copied from class:Struct.AbstractBoolean
Sets the field to a new value.- Specified by:
set
in classStruct.AbstractBoolean
- Parameters:
value
- The new value.
-
-