Package | Description |
---|---|
com.kenai.jffi |
Modifier and Type | Method and Description |
---|---|
CallContext |
Function.getCallContext() |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention) |
static CallContext |
CallContext.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno)
Returns a
CallContext instance. |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
static CallContext |
CallContext.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
Modifier and Type | Method and Description |
---|---|
ClosurePool |
ClosureManager.getClosurePool(CallContext callContext) |
static InvokeDynamicSupport.Invoker |
InvokeDynamicSupport.getFastNumericInvoker(CallContext callContext,
long function) |
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.
|
BigDecimal |
Invoker.invokeBigDecimal(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 64 bit floating point value.
|
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.invokeI0(CallContext context,
long function)
Invokes a function with no arguments, and returns a 32 bit integer.
|
int |
Invoker.invokeI0NoErrno(CallContext context,
long function) |
int |
Invoker.invokeI1(CallContext context,
long function,
int arg1)
Invokes a function with one integer argument, and returns a 32 bit integer.
|
int |
Invoker.invokeI1NoErrno(CallContext context,
long function,
int arg1) |
int |
Invoker.invokeI2(CallContext context,
long function,
int arg1,
int arg2)
Invokes a function with two integer arguments, and returns a 32 bit integer.
|
int |
Invoker.invokeI2NoErrno(CallContext context,
long function,
int arg1,
int arg2) |
int |
Invoker.invokeI3(CallContext context,
long function,
int arg1,
int arg2,
int arg3)
Invokes a function with three integer arguments, and returns a 32 bit integer.
|
int |
Invoker.invokeI3NoErrno(CallContext context,
long function,
int arg1,
int arg2,
int arg3) |
int |
Invoker.invokeI4(CallContext context,
long function,
int arg1,
int arg2,
int arg3,
int arg4)
Invokes a function with four integer arguments, and returns a 32 bit integer.
|
int |
Invoker.invokeI4NoErrno(CallContext context,
long function,
int arg1,
int arg2,
int arg3,
int arg4) |
int |
Invoker.invokeI5(CallContext context,
long function,
int arg1,
int arg2,
int arg3,
int arg4,
int arg5)
Invokes a function with five integer arguments, and returns a 32 bit integer.
|
int |
Invoker.invokeI5NoErrno(CallContext context,
long function,
int arg1,
int arg2,
int arg3,
int arg4,
int arg5) |
int |
Invoker.invokeI6(CallContext context,
long function,
int arg1,
int arg2,
int arg3,
int arg4,
int arg5,
int arg6)
Invokes a function with six integer arguments, and returns a 32 bit integer.
|
int |
Invoker.invokeI6NoErrno(CallContext context,
long function,
int arg1,
int arg2,
int arg3,
int arg4,
int arg5,
int arg6) |
int |
Invoker.invokeInt(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 32 bit integer value.
|
long |
Invoker.invokeL0(CallContext context,
long function)
Invokes a function with no arguments, and returns a 64 bit integer.
|
long |
Invoker.invokeL0NoErrno(CallContext context,
long function) |
long |
Invoker.invokeL1(CallContext context,
long function,
long arg1)
Invokes a function with one 64 bit integer argument, and returns a 64 bit integer.
|
long |
Invoker.invokeL1NoErrno(CallContext context,
long function,
long arg1) |
long |
Invoker.invokeL2(CallContext context,
long function,
long arg1,
long arg2)
Invokes a function with two 64 bit integer arguments, and returns a 64 bit integer.
|
long |
Invoker.invokeL2NoErrno(CallContext context,
long function,
long arg1,
long arg2) |
long |
Invoker.invokeL3(CallContext context,
long function,
long arg1,
long arg2,
long arg3)
Invokes a function with three 64 bit integer arguments, and returns a 64 bit integer.
|
long |
Invoker.invokeL3NoErrno(CallContext context,
long function,
long arg1,
long arg2,
long arg3) |
long |
Invoker.invokeL4(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4)
Invokes a function with four 64 bit integer arguments, and returns a 64 bit integer.
|
long |
Invoker.invokeL4NoErrno(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4) |
long |
Invoker.invokeL5(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4,
long arg5)
Invokes a function with five 64 bit integer arguments, and returns a 64 bit integer.
|
long |
Invoker.invokeL5NoErrno(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4,
long arg5) |
long |
Invoker.invokeL6(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4,
long arg5,
long arg6)
Invokes a function with six 64 bit integer arguments, and returns a 64 bit integer.
|
long |
Invoker.invokeL6NoErrno(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4,
long arg5,
long arg6) |
long |
Invoker.invokeLong(CallContext ctx,
long function,
HeapInvocationBuffer buffer)
Invokes a function and returns a 64 bit integer value.
|
long |
Invoker.invokeN0(CallContext context,
long function)
Invokes a function with no arguments, and returns a numeric value.
|
long |
Invoker.invokeN1(CallContext context,
long function,
long arg1)
Invokes a function with one numeric argument, and returns a numeric value.
|
long |
Invoker.invokeN1(CallContext ctx,
long function,
long n1,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN1O1(CallContext ctx,
long function,
long n1,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN2(CallContext context,
long function,
long arg1,
long arg2)
Invokes a function with two numeric arguments, and returns a numeric value.
|
long |
Invoker.invokeN2(CallContext ctx,
long function,
long n1,
long n2,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN2(CallContext ctx,
long function,
long n1,
long n2,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN2O1(CallContext ctx,
long function,
long n1,
long n2,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN2O2(CallContext ctx,
long function,
long n1,
long n2,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN3(CallContext context,
long function,
long arg1,
long arg2,
long arg3)
Invokes a function with three numeric arguments, and returns a numeric value.
|
long |
Invoker.invokeN3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN3O1(CallContext ctx,
long function,
long n1,
long n2,
long n3,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN3O2(CallContext ctx,
long function,
long n1,
long n2,
long n3,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN3O3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN4(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4)
Invokes a function with four numeric arguments, and returns a numeric value.
|
long |
Invoker.invokeN4(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN4(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN4(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN4(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info,
Object o4,
ObjectParameterStrategy s4,
ObjectParameterInfo o4info) |
long |
Invoker.invokeN4O1(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN4O2(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN4O3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN5(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4,
long arg5)
Invokes a function with five numeric arguments, and returns a numeric value.
|
long |
Invoker.invokeN5(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN5(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN5(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN5(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info,
Object o4,
ObjectParameterStrategy s4,
ObjectParameterInfo o4info) |
long |
Invoker.invokeN5(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info,
Object o4,
ObjectParameterStrategy s4,
ObjectParameterInfo o4info,
Object o5,
ObjectParameterStrategy s5,
ObjectParameterInfo o5info) |
long |
Invoker.invokeN5O1(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN5O2(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN5O3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN6(CallContext context,
long function,
long arg1,
long arg2,
long arg3,
long arg4,
long arg5,
long arg6)
Invokes a function with six numeric arguments, and returns a numeric value.
|
long |
Invoker.invokeN6(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN6(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN6(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
long |
Invoker.invokeN6(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info,
Object o4,
ObjectParameterStrategy s4,
ObjectParameterInfo o4info) |
long |
Invoker.invokeN6(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info,
Object o4,
ObjectParameterStrategy s4,
ObjectParameterInfo o4info,
Object o5,
ObjectParameterStrategy s5,
ObjectParameterInfo o5info) |
long |
Invoker.invokeN6(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
int objCount,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info,
Object o4,
ObjectParameterStrategy s4,
ObjectParameterInfo o4info,
Object o5,
ObjectParameterStrategy s5,
ObjectParameterInfo o5info,
Object o6,
ObjectParameterStrategy s6,
ObjectParameterInfo o6info) |
long |
Invoker.invokeN6O1(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info) |
long |
Invoker.invokeN6O2(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info) |
long |
Invoker.invokeN6O3(CallContext ctx,
long function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6,
Object o1,
ObjectParameterStrategy s1,
ObjectParameterInfo o1info,
Object o2,
ObjectParameterStrategy s2,
ObjectParameterInfo o2info,
Object o3,
ObjectParameterStrategy s3,
ObjectParameterInfo o3info) |
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. |
ClosureMagazine |
ClosureManager.newClosureMagazine(CallContext callContext,
Method method) |
Constructor and Description |
---|
Function(long address,
CallContext callContext)
Creates a new instance of Function with default calling convention.
|
HeapInvocationBuffer(CallContext callContext)
Creates a new instance of HeapInvocationBuffer.
|
HeapInvocationBuffer(CallContext context,
int objectCount)
Creates a new instance of HeapInvocationBuffer.
|
Copyright © 2018. All rights reserved.