jnr.ffi
Class StructLayout.Boolean

java.lang.Object
  extended by jnr.ffi.StructLayout.Field
      extended by jnr.ffi.StructLayout.AbstractField
          extended by jnr.ffi.StructLayout.AbstractBoolean
              extended by 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
protected StructLayout.Boolean()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructLayout.Boolean

protected StructLayout.Boolean()
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 class StructLayout.AbstractBoolean
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 class StructLayout.AbstractBoolean
value - The new value.


Copyright © 2012. All Rights Reserved.