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, longSize
getSystemRuntime
public static final NativeRuntime getInstance()
public Type findType(TypeAlias type)
Runtime
public final NativeMemoryManager getMemoryManager()
AbstractRuntime
getMemoryManager
in class AbstractRuntime
MemoryManager
public jnr.ffi.provider.jffi.NativeClosureManager getClosureManager()
public ObjectReferenceManager newObjectReferenceManager()
newObjectReferenceManager
in class Runtime
public int getLastError()
AbstractRuntime
This returns the errno value that was set at the time of the last native function call.
getLastError
in class AbstractRuntime
public void setLastError(int error)
AbstractRuntime
setLastError
in class AbstractRuntime
error
- The value to set errno to.Copyright © 2013. All Rights Reserved.