public abstract class AbstractRuntime extends Runtime
构造器和说明 |
---|
AbstractRuntime(ByteOrder byteOrder,
EnumMap<NativeType,Type> typeMap) |
限定符和类型 | 方法和说明 |
---|---|
long |
addressMask()
Gets the address mask for this runtime
|
int |
addressSize()
Gets the size of an address (e.g. a pointer) for this runtime
|
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
在类中 Runtime
MemoryManager
public abstract int getLastError()
This returns the errno value that was set at the time of the last native function call.
getLastError
在类中 Runtime
public abstract void setLastError(int error)
setLastError
在类中 Runtime
error
- The value to set errno to.public final long addressMask()
addressMask
在类中 Runtime
public final int addressSize()
addressSize
在类中 Runtime
public final int longSize()
Copyright © 2021. All rights reserved.