public abstract class AbstractRuntime extends Runtime
| Constructor and Description |
|---|
AbstractRuntime(ByteOrder byteOrder,
EnumMap<NativeType,Type> typeMap) |
| Modifier and Type | Method and Description |
|---|---|
long |
addressMask()
Gets the address mask for this runtime
|
int |
addressSize()
Gets the size of an address (e.g.
|
ByteOrder |
byteOrder()
Retrieves this runtime's native byte order.
|
Type |
findType(NativeType 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
|
int |
longSize()
Gets the size of a C long integer for this runtime
|
abstract void |
setLastError(int error)
Sets the native error code.
|
findType, getClosureManager, getRuntime, getSystemRuntime, isCompatible, newObjectReferenceManagerpublic AbstractRuntime(ByteOrder byteOrder, EnumMap<NativeType,Type> typeMap)
public final Type findType(NativeType type)
public abstract MemoryManager getMemoryManager()
getMemoryManager in class RuntimeMemoryManagerpublic abstract int getLastError()
This returns the errno value that was set at the time of the last native function call.
getLastError in class Runtimepublic abstract void setLastError(int error)
setLastError in class Runtimeerror - The value to set errno to.public final long addressMask()
addressMask in class Runtimepublic final int addressSize()
addressSize in class Runtimepublic final int longSize()
Copyright © 2017. All rights reserved.