|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Runtime
jnr.ffi.provider.AbstractRuntime
public abstract class AbstractRuntime
| Constructor Summary | |
|---|---|
AbstractRuntime(ByteOrder byteOrder,
EnumMap<NativeType,Type> typeMap)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class jnr.ffi.Runtime |
|---|
findType, getClosureManager, getRuntime, getSystemRuntime, isCompatible, newObjectReferenceManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRuntime(ByteOrder byteOrder,
EnumMap<NativeType,Type> typeMap)
| Method Detail |
|---|
public final Type findType(NativeType type)
findType in class RuntimeType instancepublic 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()
longSize in class Runtimepublic final ByteOrder byteOrder()
byteOrder in class Runtime
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||