public final class NativeRuntime extends AbstractRuntime
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
addressMask, addressSize, byteOrder, findType, longSizegetRuntime, getSystemRuntimepublic static NativeRuntime getInstance()
public Type findType(TypeAlias type)
Runtimepublic final NativeMemoryManager getMemoryManager()
AbstractRuntimegetMemoryManager 在类中 AbstractRuntimeMemoryManagerpublic jnr.ffi.provider.jffi.NativeClosureManager getClosureManager()
RuntimegetClosureManager 在类中 RuntimeClosureManager of the runtimepublic ObjectReferenceManager newObjectReferenceManager()
RuntimeObjectReferenceManagernewObjectReferenceManager 在类中 RuntimeObjectReferenceManagerpublic int getLastError()
AbstractRuntimeThis returns the errno value that was set at the time of the last native function call.
getLastError 在类中 AbstractRuntimepublic void setLastError(int error)
AbstractRuntimesetLastError 在类中 AbstractRuntimeerror - The value to set errno to.public boolean isCompatible(Runtime other)
RuntimeRuntime instance is compatible with another Runtime instance.
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 在类中 Runtimeother - the other runtime to test for compatibilityCopyright © 2021. All rights reserved.