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, newObjectReferenceManager
public AbstractRuntime(ByteOrder byteOrder, EnumMap<NativeType,Type> typeMap)
public final Type findType(NativeType type)
public abstract MemoryManager getMemoryManager()
getMemoryManager
in class Runtime
MemoryManager
public abstract int getLastError()
This returns the errno value that was set at the time of the last native function call.
getLastError
in class Runtime
public abstract void setLastError(int error)
setLastError
in class Runtime
error
- The value to set errno to.public final long addressMask()
addressMask
in class Runtime
public final int addressSize()
addressSize
in class Runtime
public final int longSize()
Copyright © 2017. All rights reserved.