|
intarsys nativeC library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INativeInterface
The abstraction of a generic interface to c native code.
| Method Summary | |
|---|---|
void |
addSearchPath(String path)
Add a directory to the search path. |
INativeHandle |
allocate(int size)
Allocate c memory and return the respective INativeHandle. |
INativeCallback |
createCallback(ICallback callback)
|
INativeHandle |
createHandle(ByteBuffer buffer)
Allocate c memory (if necessary) from buffer. |
INativeHandle |
createHandle(long address)
Create a void INativeHandle to a memory address. |
INativeLibrary |
createLibrary(String name)
Load a new INativeLibrary. |
int |
longSize()
The platform long size. |
int |
pointerSize()
The platform pointer size. |
int |
wideCharSize()
The platform wide char size. |
| Method Detail |
|---|
void addSearchPath(String path)
path - The path to be added;INativeHandle allocate(int size)
INativeHandle.
size - The size in bytes.
INativeHandleINativeCallback createCallback(ICallback callback)
INativeHandle createHandle(ByteBuffer buffer)
buffer. The new memory
will have the same content as buffer.
This method may NOT allocate c memory if buffer is a direct
buffer.
buffer - The date for the new memory chunk.
INativeHandle createHandle(long address)
INativeHandle to a memory address.
There is no special handling for the 0 address!
address - The memory address.
INativeLibrary createLibrary(String name)
INativeLibrary.
name - The name of the library to load.
INativeLibraryint longSize()
int pointerSize()
int wideCharSize()
|
intarsys nativeC library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||