public final class NativeRuntime extends AbstractRuntime
| Modifier and Type | Method and Description |
|---|---|
Type |
findType(TypeAlias type)
Looks up the runtime-specific that corresponds to the pseudo-type
|
jnr.ffi.provider.jffi.NativeClosureManager |
getClosureManager() |
static NativeRuntime |
getInstance() |
int |
getLastError()
Gets the last native error code.
|
NativeMemoryManager |
getMemoryManager()
Gets the native memory manager instance for this runtime
|
ObjectReferenceManager |
newObjectReferenceManager() |
void |
setLastError(int error)
Sets the native error code.
|
addressMask, addressSize, byteOrder, findType, longSizegetSystemRuntimepublic static final NativeRuntime getInstance()
public Type findType(TypeAlias type)
Runtimepublic final NativeMemoryManager getMemoryManager()
AbstractRuntimegetMemoryManager in class AbstractRuntimeMemoryManagerpublic jnr.ffi.provider.jffi.NativeClosureManager getClosureManager()
public ObjectReferenceManager newObjectReferenceManager()
newObjectReferenceManager in class Runtimepublic int getLastError()
AbstractRuntimeThis returns the errno value that was set at the time of the last native function call.
getLastError in class AbstractRuntimepublic void setLastError(int error)
AbstractRuntimesetLastError in class AbstractRuntimeerror - The value to set errno to.Copyright © 2013. All rights reserved.