|
|||||||||
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.NativeInt
public class NativeInt
Wrapped class for native int
type.
Class with read only support.
Field Summary | |
---|---|
static int |
LengthInBytes
|
Fields inherited from class be.cardon.nativecall.NativeObject |
---|
BYTE_SIZE, INT_SIZE, LLC |
Constructor Summary | |
---|---|
NativeInt()
allocates a new integer |
|
NativeInt(int address)
existing integer. |
|
NativeInt(int address,
boolean readOnly)
existing integer, with protection or not. |
Method Summary | |
---|---|
int |
get()
return the native int value. |
static NativeInt |
newInstance(NativeObject obj)
Convert a NativeObject in a nativeInt. |
void |
set(int value)
set the native int 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 NativeInt() throws NativeCallException
NativeCallException
public NativeInt(int address) throws NativeCallException
NativeCallException
public NativeInt(int address, boolean readOnly) throws NativeCallException
NativeCallException
Method Detail |
---|
public static NativeInt newInstance(NativeObject obj) throws NativeCallException
NativeCallException
public int get() throws NativeCallException
int
value.
NativeCallException
public void set(int value) throws NativeCallException
int
value.
NativeCallException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |