Package | Description |
---|---|
com.kenai.jffi |
Modifier and Type | Method and Description |
---|---|
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention) |
Modifier and Type | Method and Description |
---|---|
void |
Invoker.invoke(CallContext ctx,
long function,
long returnBuffer,
long[] parameters)
Invokes a function, with the parameters loaded into native memory buffers,
and the function result is stored in a native memory buffer.
|
abstract long |
Invoker.invokeAddress(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a native memory address.
|
double |
Invoker.invokeDouble(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 64 bit floating point value.
|
float |
Invoker.invokeFloat(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 32 bit floating point value.
|
int |
Invoker.invokeInt(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 32 bit integer value.
|
long |
Invoker.invokeLong(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 64 bit integer value.
|
byte[] |
Invoker.invokeStruct(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function that returns a C struct by value.
|
void |
Invoker.invokeStruct(CallContext ctx,
long function,
HeapInvocationBuffer buffer,
byte[] returnBuffer,
int offset)
Invokes a function that returns a C struct by value.
|
Closure.Handle |
ClosureManager.newClosure(Closure closure,
CallContext callContext)
Wraps a java object that implements the
Closure interface in a
native closure. |