public abstract class Runtime extends Object
Constructor and Description |
---|
Runtime() |
Modifier and Type | Method and Description |
---|---|
abstract long |
addressMask()
Gets the address mask for this runtime
|
abstract int |
addressSize()
Gets the size of an address (e.g.
|
abstract ByteOrder |
byteOrder()
Retrieves this runtime's native byte order.
|
abstract Type |
findType(NativeType type)
Looks up the runtime-specific that corresponds to the pseudo-type
|
abstract Type |
findType(TypeAlias type)
Looks up the runtime-specific that corresponds to the pseudo-type
|
abstract int |
getLastError()
Gets the last native error code.
|
abstract MemoryManager |
getMemoryManager()
Gets the native memory manager instance for this runtime
|
static Runtime |
getSystemRuntime()
Gets the global Runtime for the current FFI provider
|
abstract int |
longSize()
Gets the size of a C long integer for this runtime
|
abstract ObjectReferenceManager |
newObjectReferenceManager() |
abstract void |
setLastError(int error)
Sets the native error code.
|
public static final Runtime getSystemRuntime()
public abstract Type findType(NativeType type)
public abstract Type findType(TypeAlias type)
public abstract MemoryManager getMemoryManager()
MemoryManager
public abstract ObjectReferenceManager newObjectReferenceManager()
public abstract int getLastError()
This returns the errno value that was set at the time of the last native function call.
public abstract void setLastError(int error)
error
- The value to set errno to.public abstract long addressMask()
public abstract int addressSize()
public abstract int longSize()
public abstract ByteOrder byteOrder()
Copyright © 2017. All Rights Reserved.