|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.ext.ffi.FFIProvider
org.jruby.ext.ffi.jna.JNAProvider
public final class JNAProvider
A FFIProvider that uses JNA to load and execute native functions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.ObjectMethods |
| Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
|---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer, RubyBasicObject.VariableTableEntry |
| Field Summary |
|---|
| Fields inherited from class org.jruby.ext.ffi.FFIProvider |
|---|
CLASS_NAME, MODULE_NAME |
| Fields inherited from class org.jruby.RubyObject |
|---|
OBJECT_ALLOCATOR |
| Fields inherited from class org.jruby.RubyBasicObject |
|---|
ALL_F, dataStruct, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, VARIABLE_TABLE_DEFAULT_CAPACITY, VARIABLE_TABLE_EMPTY_TABLE, VARIABLE_TABLE_LOAD_FACTOR, VARIABLE_TABLE_MAXIMUM_CAPACITY, variableTable, variableTableSize, variableTableThreshold |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Method Summary | |
|---|---|
Invoker |
createInvoker(Ruby runtime,
java.lang.String libraryName,
java.lang.String functionName,
NativeType returnType,
NativeParam[] parameterTypes,
java.lang.String convention)
Creates a new invoker for a native function. |
int |
getLastError()
Gets the last native error code. |
void |
setLastError(int error)
Sets the native error code. |
| Methods inherited from class org.jruby.ext.ffi.FFIProvider |
|---|
createInvoker, createProviderClass, getLastError, getLastError, getModule |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final Invoker createInvoker(Ruby runtime,
java.lang.String libraryName,
java.lang.String functionName,
NativeType returnType,
NativeParam[] parameterTypes,
java.lang.String convention)
FFIProvider
createInvoker in class FFIProviderlibraryName - The library that contains the function.functionName - The function name.returnType - The return type of the function.parameterTypes - The parameter types the function takes.
public int getLastError()
FFIProviderThis returns the errno value that was set at the time of the last native function call.
getLastError in class FFIProviderpublic void setLastError(int error)
FFIProvider
setLastError in class FFIProvidererror - The value to set errno to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||