jnr.ffi.provider.jffi
Class NativeRuntime

java.lang.Object
  extended by jnr.ffi.Runtime
      extended by jnr.ffi.provider.AbstractRuntime
          extended by jnr.ffi.provider.jffi.NativeRuntime

public final class NativeRuntime
extends AbstractRuntime


Method Summary
 Type findType(TypeAlias type)
          Looks up the runtime-specific that corresponds to the pseudo-type
 jnr.ffi.provider.jffi.NativeClosureManager getClosureManager()
           
static NativeRuntime getInstance()
           
 int getLastError()
          Gets the last native error code.
 NativeMemoryManager getMemoryManager()
          Gets the native memory manager instance for this runtime
 ObjectReferenceManager newObjectReferenceManager()
           
 void setLastError(int error)
          Sets the native error code.
 
Methods inherited from class jnr.ffi.provider.AbstractRuntime
addressMask, addressSize, byteOrder, findType, longSize
 
Methods inherited from class jnr.ffi.Runtime
getSystemRuntime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final NativeRuntime getInstance()

findType

public Type findType(TypeAlias type)
Description copied from class: Runtime
Looks up the runtime-specific that corresponds to the pseudo-type

Specified by:
findType in class Runtime

getMemoryManager

public final NativeMemoryManager getMemoryManager()
Description copied from class: AbstractRuntime
Gets the native memory manager instance for this runtime

Specified by:
getMemoryManager in class AbstractRuntime
Returns:
a MemoryManager

getClosureManager

public jnr.ffi.provider.jffi.NativeClosureManager getClosureManager()

newObjectReferenceManager

public ObjectReferenceManager newObjectReferenceManager()
Specified by:
newObjectReferenceManager in class Runtime

getLastError

public int getLastError()
Description copied from class: AbstractRuntime
Gets the last native error code.

This returns the errno value that was set at the time of the last native function call.

Specified by:
getLastError in class AbstractRuntime
Returns:
The errno value.

setLastError

public void setLastError(int error)
Description copied from class: AbstractRuntime
Sets the native error code.

Specified by:
setLastError in class AbstractRuntime
Parameters:
error - The value to set errno to.


Copyright © 2012. All Rights Reserved.