com.kenai.jaffl
public abstract class FFIProvider extends Object
| Constructor Summary | |
|---|---|
| protected | FFIProvider() |
| Method Summary | |
|---|---|
| abstract int | getLastError()
Gets the last native error code.
|
| abstract MemoryManager | getMemoryManager()
Gets the native memory manager for this provider.
|
| static FFIProvider | getProvider()
Gets an instance of FFIProvider
|
| abstract Type | getType(NativeType type) |
| abstract <T> T | loadLibrary(String libraryName, Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions)
Loads a native library and links the methods defined in {@code interfaceClass}
to native methods in the library.
|
| abstract <T> T | loadLibrary(Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions, String... libraryNames)
Loads a native library and links the methods defined in {@code interfaceClass}
to native methods in the library.
|
| abstract void | setLastError(int error)
Sets the native error code.
|
This returns the errno value that was set at the time of the last native function call.
Returns: The errno value.
Returns: a MemoryManager
Returns: an instance of FFIProvider
Parameters: libraryName the name of the library to load interfaceClass the interface that describes the native library interface libraryOptions options
Returns: an instance of {@code interfaceclass} that will call the native methods.
Parameters: interfaceClass the interface that describes the native library interface libraryOptions options libraryNames the list of libraries to load
Returns: an instance of {@code interfaceclass} that will call the native methods.
Parameters: error The value to set errno to.