|
JNative project : see http://jnative.sf.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xvolks.jnative.pointers.memory.AbstractMemoryBlock
org.xvolks.jnative.pointers.memory.NativeMemoryBlock
public class NativeMemoryBlock
Constructor Summary | |
---|---|
NativeMemoryBlock(int address,
int size)
|
Method Summary | |
---|---|
void |
dispose()
Method dispose provides a way to free the memory This implementation does nothing as we do not know how this memory block was allocated |
int |
reserveMemory(int size)
Method reserveMemory allocate a block of native memory |
Methods inherited from class org.xvolks.jnative.pointers.memory.AbstractMemoryBlock |
---|
getPointer, getSize, setPointer, setSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeMemoryBlock(int address, int size)
Method Detail |
---|
public int reserveMemory(int size) throws NativeException
size
- in bytes of the block
NativeException
public void dispose() throws NativeException
This implementation does nothing as we do not know how this memory block was allocated
NativeException
|
JNative project : see http://jnative.sf.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |