|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.cardon.nativecall.NativeObject
be.cardon.nativecall.NativeBoolean
public class NativeBoolean
Wrapped class for native bool
type.
Note that the length definition is ambiguous (the effective memory
length varies).
Class with read only support.
Field Summary | |
---|---|
static int |
LengthInBytes
The allocated memory is not always equal to this valuen but it doesn't matter (LengthInBytes is only used for allocation and must be >=1) ! |
Fields inherited from class be.cardon.nativecall.NativeObject |
---|
BYTE_SIZE, INT_SIZE, LLC |
Constructor Summary | |
---|---|
NativeBoolean()
allocates a new boolean |
|
NativeBoolean(int address)
existing boolean. |
|
NativeBoolean(int address,
boolean readOnly)
existing boolean, with protection or not. |
Method Summary | |
---|---|
boolean |
get()
return the native bool value. |
static NativeBoolean |
newInstance(NativeObject obj)
Convert a NativeObject in a NativeBoolean. |
void |
set(boolean value)
set the native bool value. |
Methods inherited from class be.cardon.nativecall.NativeObject |
---|
finalize, getAddress, getLength, isReadOnly, setReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LengthInBytes
Constructor Detail |
---|
public NativeBoolean() throws NativeCallException
NativeCallException
public NativeBoolean(int address) throws NativeCallException
NativeCallException
public NativeBoolean(int address, boolean readOnly) throws NativeCallException
NativeCallException
Method Detail |
---|
public static NativeBoolean newInstance(NativeObject obj) throws NativeCallException
NativeCallException
public boolean get() throws NativeCallException
bool
value.
NativeCallException
public void set(boolean value) throws NativeCallException
bool
value.
NativeCallException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |