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
Base class for Boolean fields
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBoolean(NativeType type) protectedAbstractBoolean(NativeType type, StructLayout.Offset offset) -
Method Summary
Methods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
Constructor Details
-
AbstractBoolean
-
AbstractBoolean
-
-
Method Details
-
get
Gets the value for this field.- Parameters:
ptr- The pointer to the field.- Returns:
- a boolean.
-
set
Sets the field to a new value.- Parameters:
ptr- The pointer to the field.value- The new value.
-
toString
Returns a string representation of thisBoolean.- Parameters:
ptr- The pointer to the field.- Returns:
- a string representation of this
Boolean.
-