public interface INativeInterface
Modifier and Type | Method and Description |
---|---|
void |
addSearchPath(java.lang.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) |
INativeFunction |
createFunction(long address)
Create an
INativeFunction from a function pointer. |
INativeHandle |
createHandle(long address)
Create a void
INativeHandle to a memory address. |
INativeLibrary |
createLibrary(java.lang.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.
|
void addSearchPath(java.lang.String path)
path
- The path to be added;INativeHandle allocate(int size)
INativeHandle
.size
- The size in bytes.INativeHandle
INativeCallback createCallback(ICallback callback)
INativeFunction createFunction(long address)
INativeFunction
from a function pointer.
There is no special handling for the 0 address!
address
- The function pointer.INativeHandle createHandle(long address)
INativeHandle
to a memory address.
There is no special handling for the 0 address!
address
- The memory address.INativeLibrary createLibrary(java.lang.String name)
INativeLibrary
.name
- The name of the library to load.INativeLibrary
int longSize()
int pointerSize()
int wideCharSize()