Package jnr.ffi

Class StructLayout.AbstractBoolean

Direct Known Subclasses:
StructLayout.BOOL16, StructLayout.Boolean, StructLayout.WBOOL
Enclosing class:
StructLayout

protected abstract class StructLayout.AbstractBoolean extends StructLayout.AbstractField
Base class for Boolean fields
  • Constructor Details

  • Method Details

    • get

      public abstract boolean get(Pointer ptr)
      Gets the value for this field.
      Parameters:
      ptr - The pointer to the field.
      Returns:
      a boolean.
    • set

      public abstract void set(Pointer ptr, boolean value)
      Sets the field to a new value.
      Parameters:
      ptr - The pointer to the field.
      value - The new value.
    • toString

      public String toString(Pointer ptr)
      Returns a string representation of this Boolean.
      Parameters:
      ptr - The pointer to the field.
      Returns:
      a string representation of this Boolean.