|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Runtime
jnr.ffi.provider.AbstractRuntime
jnr.ffi.provider.jffi.NativeRuntime
public final class NativeRuntime
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Type |
findType(TypeAlias type)
Looks up the runtime-specific type that corresponds to the type alias |
jnr.ffi.provider.jffi.NativeClosureManager |
getClosureManager()
Gets the native closure manager for this runtime |
static NativeRuntime |
getInstance()
|
int |
getLastError()
Gets the last native error code. |
NativeMemoryManager |
getMemoryManager()
Gets the native memory manager instance for this runtime |
int |
hashCode()
|
boolean |
isCompatible(Runtime other)
Indicates whether this Runtime instance is compatible with another Runtime instance. |
ObjectReferenceManager |
newObjectReferenceManager()
Creates a new ObjectReferenceManager |
void |
setLastError(int error)
Sets the native error code. |
| Methods inherited from class jnr.ffi.provider.AbstractRuntime |
|---|
addressMask, addressSize, byteOrder, findType, longSize |
| Methods inherited from class jnr.ffi.Runtime |
|---|
getRuntime, getSystemRuntime |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NativeRuntime getInstance()
public Type findType(TypeAlias type)
Runtime
findType in class RuntimeType instancepublic final NativeMemoryManager getMemoryManager()
AbstractRuntime
getMemoryManager in class AbstractRuntimeMemoryManagerpublic jnr.ffi.provider.jffi.NativeClosureManager getClosureManager()
Runtime
getClosureManager in class RuntimeClosureManager of the runtimepublic ObjectReferenceManager newObjectReferenceManager()
RuntimeObjectReferenceManager
newObjectReferenceManager in class RuntimeObjectReferenceManagerpublic 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)
AbstractRuntime
setLastError in class AbstractRuntimeerror - The value to set errno to.public boolean isCompatible(Runtime other)
Runtime
This is not the same as calling Object.equals(java.lang.Object) - this method only indicates whether or not artifacts from the
runtime (e.g. memory addresses) are compatible with artifacts from this one.
This is mostly for internal use.
isCompatible in class Runtimeother - the other runtime to test for compatibility
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||