Top Description Inners Fields Constructors Methods
com.kenai.jffi

public abstract Class Invoker

extends Object
Class Inheritance
Known Direct Subclasses
com.kenai.jffi.Invoker.ILP32, com.kenai.jffi.Invoker.LP64
Imports
java.math.BigDecimal

Provides native function invocation facilities.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
Invoker.ILP32

A 32 bit invoker implementation

private static class
Invoker.LP64

A 64 bit invoker implementation

private static class
Invoker.SingletonHolder

Lazy initialization singleton holder

Field Summary

Modifier and TypeField and Description
private final Foreign
private final ObjectParameterInvoker

Constructor Summary

AccessConstructor and Description
private
Invoker()

Creates a new Invoker

pack-priv
Invoker(Foreign foreign, ObjectParameterInvoker objectParameterInvoker)

Method Summary

Modifier and TypeMethod and Description
public static Invoker

Returns:

An instance of Invoker.
getInstance
()

Gets the Invoker singleton.

public final ObjectParameterInvoker

Returns:

An instance of ObjectParameterInvoker
getObjectParameterInvoker
()

Gets the fast-path object parameter invoker.

public final void
invoke(Function
The Function to invoke.
function
,
long
The address of the native buffer to place the result of the function call in.
returnBuffer
,
long[]
An array of addresses of the function parameters.
parameters
)

Invokes a function, with the parameters loaded into native memory buffers, and the function result is stored in a native memory buffer.

public final void
invoke(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
long
The address of the native buffer to place the result of the function call in.
returnBuffer
,
long[]
An array of addresses of the function parameters.
parameters
)

Invokes a function, with the parameters loaded into native memory buffers, and the function result is stored in a native memory buffer.

public long

Returns:

A native memory address.
invokeAddress
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a native memory address.

public abstract long

Returns:

A native memory address.
invokeAddress
(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a native memory address.

private int

Returns:

A 32 bit integer value.
invokeArrayWithObjectsInt32
(long ctx, long
The native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
,
ObjectBuffer
A buffer containing objects to be passed to the native function.
objectBuffer
)

Convenience method to pass the objects and object descriptor array down as normal arguments, so hotspot can optimize it.

private long

Returns:

A 64 bit integer value.
invokeArrayWithObjectsInt64
(long ctx, long
The native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
,
ObjectBuffer
A buffer containing objects to be passed to the native function.
objectBuffer
)

Convenience method to pass the objects and object descriptor array down as normal arguments, so hotspot can optimize it.

public final BigDecimal

Returns:

A native memory address.
invokeBigDecimal
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 64 bit floating point value.

public final BigDecimal

Returns:

A native memory address.
invokeBigDecimal
(CallContext ctx, long
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 64 bit floating point value.

public final double

Returns:

A native memory address.
invokeDouble
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 64 bit floating point value.

public final double

Returns:

A native memory address.
invokeDouble
(CallContext
The call context describing how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 64 bit floating point value.

public final float

Returns:

A native memory address.
invokeFloat
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 32 bit floating point value.

public final float

Returns:

A native memory address.
invokeFloat
(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 32 bit floating point value.

public final int

Returns:

A 32 bit integer value.
invokeI0
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
)

Invokes a function with no arguments, and returns a 32 bit integer.

public final int
invokeI0NoErrno(CallContext context, long function)

public final int

Returns:

A 32 bit integer value.
invokeI1
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
int
A 32 bit integer argument.
arg1
)

Invokes a function with one integer argument, and returns a 32 bit integer.

public final int
invokeI1NoErrno(CallContext context, long function, int arg1)

public final int

Returns:

A 32 bit integer value.
invokeI2
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
)

Invokes a function with two integer arguments, and returns a 32 bit integer.

public final int
invokeI2NoErrno(CallContext context, long function, int arg1, int arg2)

public final int

Returns:

A 32 bit integer value.
invokeI3
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
)

Invokes a function with three integer arguments, and returns a 32 bit integer.

public final int
invokeI3NoErrno(CallContext context, long function, int arg1, int arg2, int arg3)

public final int

Returns:

A 32 bit integer value.
invokeI4
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
,
int
The fourth 32 bit integer argument.
arg4
)

Invokes a function with four integer arguments, and returns a 32 bit integer.

public final int
invokeI4NoErrno(CallContext context, long function, int arg1, int arg2, int arg3, int arg4)

public final int

Returns:

A 32 bit integer value.
invokeI5
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
,
int
The fourth 32 bit integer argument.
arg4
,
int
The fifth 32 bit integer argument.
arg5
)

Invokes a function with five integer arguments, and returns a 32 bit integer.

public final int
invokeI5NoErrno(CallContext context, long function, int arg1, int arg2, int arg3, int arg4, int arg5)

public final int

Returns:

A 32 bit integer value.
invokeI6
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
,
int
The fourth 32 bit integer argument.
arg4
,
int
The fifth 32 bit integer argument.
arg5
,
int
The sixth 32 bit integer argument.
arg6
)

Invokes a function with six integer arguments, and returns a 32 bit integer.

public final int
invokeI6NoErrno(CallContext context, long function, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)

public final int

Returns:

A 32 bit integer value.
invokeIIIIIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
,
int
The fourth 32 bit integer argument.
arg4
,
int
The fifth 32 bit integer argument.
arg5
,
int
The sixth 32 bit integer argument.
arg6
)

Deprecated
Invokes a function with six integer arguments, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeIIIIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
,
int
The fourth 32 bit integer argument.
arg4
,
int
The fifth 32 bit integer argument.
arg5
)

Deprecated
Invokes a function with five integer arguments, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeIIIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
,
int
The fourth 32 bit integer argument.
arg4
)

Deprecated
Invokes a function with four integer arguments, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeIIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
)

Deprecated
Invokes a function with three integer arguments, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
)

Deprecated
Invokes a function with two integer arguments, and returns a 32 bit integer.
public final int

Returns:

A native memory address.
invokeInt
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 32 bit integer value.

public final int

Returns:

A native memory address.
invokeInt
(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 32 bit integer value.

public final int

Returns:

A 32 bit integer value.
invokeIrI
(Function
The Function to invoke.
function
,
int
A 32 bit integer argument.
arg1
)

Deprecated
Invokes a function with one integer argument, and returns a 32 bit integer.
public final long

Returns:

A 64 bit integer value.
invokeL0
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
)

Invokes a function with no arguments, and returns a 64 bit integer.

public final long
invokeL0NoErrno(CallContext context, long function)

public final long

Returns:

A 64 bit integer value.
invokeL1
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The 64 bit integer argument.
arg1
)

Invokes a function with one 64 bit integer argument, and returns a 64 bit integer.

public final long
invokeL1NoErrno(CallContext context, long function, long arg1)

public final long

Returns:

A 64 bit integer value.
invokeL2
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
)

Invokes a function with two 64 bit integer arguments, and returns a 64 bit integer.

public final long
invokeL2NoErrno(CallContext context, long function, long arg1, long arg2)

public final long

Returns:

A 64 bit integer value.
invokeL3
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
)

Invokes a function with three 64 bit integer arguments, and returns a 64 bit integer.

public final long
invokeL3NoErrno(CallContext context, long function, long arg1, long arg2, long arg3)

public final long

Returns:

A 64 bit integer value.
invokeL4
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
,
long
The fourth 64 bit integer argument.
arg4
)

Invokes a function with four 64 bit integer arguments, and returns a 64 bit integer.

public final long
invokeL4NoErrno(CallContext context, long function, long arg1, long arg2, long arg3, long arg4)

public final long

Returns:

A 64 bit integer value.
invokeL5
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
,
long
The fourth 64 bit integer argument.
arg4
,
long
The fifth 64 bit integer argument.
arg5
)

Invokes a function with five 64 bit integer arguments, and returns a 64 bit integer.

public final long
invokeL5NoErrno(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5)

public final long

Returns:

A 64 bit integer value.
invokeL6
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
,
long
The fourth 64 bit integer argument.
arg4
,
long
The fifth 64 bit integer argument.
arg5
,
long
The sixth 64 bit integer argument.
arg6
)

Invokes a function with six 64 bit integer arguments, and returns a 64 bit integer.

public final long
invokeL6NoErrno(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6)

public final long

Returns:

A 64 bit integer value.
invokeLLLLLLrL
(Function
The Function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
,
long
The fourth 64 bit integer argument.
arg4
,
long
The fifth 64 bit integer argument.
arg5
,
long
The sixth 64 bit integer argument.
arg6
)

Invokes a function with six 64 bit integer arguments, and returns a 64 bit integer.

public final long

Returns:

A 64 bit integer value.
invokeLLLLLrL
(Function
The Function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
,
long
The fourth 64 bit integer argument.
arg4
,
long
The fifth 64 bit integer argument.
arg5
)

Invokes a function with five 64 bit integer arguments, and returns a 64 bit integer.

public final long

Returns:

A 64 bit integer value.
invokeLLLLrL
(Function
The Function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
,
long
The fourth 64 bit integer argument.
arg4
)

Invokes a function with four 64 bit integer arguments, and returns a 64 bit integer.

public final long

Returns:

A 64 bit integer value.
invokeLLLrL
(Function
The Function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
,
long
The third 64 bit integer argument.
arg3
)

Invokes a function with three 64 bit integer arguments, and returns a 64 bit integer.

public final long

Returns:

A 64 bit integer value.
invokeLLrL
(Function
The Function to invoke.
function
,
long
The first 64 bit integer argument.
arg1
,
long
The second 64 bit integer argument.
arg2
)

Invokes a function with two 64 bit integer arguments, and returns a 64 bit integer.

public final long

Returns:

A native memory address.
invokeLong
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 64 bit integer value.

public final long

Returns:

A native memory address.
invokeLong
(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
A buffer containing the arguments to the function.
buffer
)

Invokes a function and returns a 64 bit integer value.

public final long

Returns:

A 64 bit integer value.
invokeLrL
(Function
The Function to invoke.
function
,
long
The 64 bit integer argument.
arg1
)

Invokes a function with one 64 bit integer argument, and returns a 64 bit integer.

public final long

Returns:

A numeric value.
invokeN0
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
)

Invokes a function with no arguments, and returns a numeric value.

public final long

Returns:

A numeric value.
invokeN1
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The numeric argument.
arg1
)

Invokes a function with one numeric argument, and returns a numeric value.

public final long
invokeN1(CallContext ctx, long function, long n1, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN1O1(CallContext ctx, long function, long n1, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long

Returns:

A numeric value.
invokeN2
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
)

Invokes a function with two numeric arguments, and returns a numeric value.

public final long
invokeN2(CallContext ctx, long function, long n1, long n2, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN2(CallContext ctx, long function, long n1, long n2, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN2O1(CallContext ctx, long function, long n1, long n2, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN2O2(CallContext ctx, long function, long n1, long n2, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long

Returns:

A numeric value.
invokeN3
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
)

Invokes a function with three numeric arguments, and returns a numeric value.

public final long
invokeN3(CallContext ctx, long function, long n1, long n2, long n3, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN3(CallContext ctx, long function, long n1, long n2, long n3, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN3(CallContext ctx, long function, long n1, long n2, long n3, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long
invokeN3O1(CallContext ctx, long function, long n1, long n2, long n3, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN3O2(CallContext ctx, long function, long n1, long n2, long n3, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN3O3(CallContext ctx, long function, long n1, long n2, long n3, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long

Returns:

A numeric value.
invokeN4
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
,
long
The fourth numeric argument.
arg4
)

Invokes a function with four numeric arguments, and returns a numeric value.

public final long
invokeN4(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN4(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN4(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long
invokeN4(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy<T> s4, ObjectParameterInfo o4info)

public final long
invokeN4O1(CallContext ctx, long function, long n1, long n2, long n3, long n4, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN4O2(CallContext ctx, long function, long n1, long n2, long n3, long n4, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN4O3(CallContext ctx, long function, long n1, long n2, long n3, long n4, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long

Returns:

A numeric value.
invokeN5
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
,
long
The fourth numeric argument.
arg4
,
long
The fifth numeric argument.
arg5
)

Invokes a function with five numeric arguments, and returns a numeric value.

public final long
invokeN5(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN5(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN5(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long
invokeN5(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy<T> s4, ObjectParameterInfo o4info)

public final long
invokeN5(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy<T> s4, ObjectParameterInfo o4info, Object o5, ObjectParameterStrategy<T> s5, ObjectParameterInfo o5info)

public final long
invokeN5O1(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN5O2(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN5O3(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long

Returns:

A numeric value.
invokeN6
(CallContext
The CallContext describing how to invoke the function.
context
,
long
Address of the native function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
,
long
The fourth numeric argument.
arg4
,
long
The fifth numeric argument.
arg5
,
long
The sixth numeric argument.
arg6
)

Invokes a function with six numeric arguments, and returns a numeric value.

public final long
invokeN6(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN6(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN6(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long
invokeN6(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy<T> s4, ObjectParameterInfo o4info)

public final long
invokeN6(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy<T> s4, ObjectParameterInfo o4info, Object o5, ObjectParameterStrategy<T> s5, ObjectParameterInfo o5info)

public final long
invokeN6(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy<T> s4, ObjectParameterInfo o4info, Object o5, ObjectParameterStrategy<T> s5, ObjectParameterInfo o5info, Object o6, ObjectParameterStrategy<T> s6, ObjectParameterInfo o6info)

public final long
invokeN6O1(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info)

public final long
invokeN6O2(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info)

public final long
invokeN6O3(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, ObjectParameterStrategy<T> s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy<T> s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy<T> s3, ObjectParameterInfo o3info)

public final long

Returns:

A numeric value.
invokeNNNNNNrN
(Function
The Function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
,
long
The fourth numeric argument.
arg4
,
long
The fifth numeric argument.
arg5
,
long
The sixth numeric argument.
arg6
)

Invokes a function with six numeric arguments, and returns a numeric value.

public final long

Returns:

A numeric value.
invokeNNNNNrN
(Function
The Function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
,
long
The fourth numeric argument.
arg4
,
long
The fifth numeric argument.
arg5
)

Invokes a function with five numeric arguments, and returns a numeric value.

public final long

Returns:

A numeric value.
invokeNNNNrN
(Function
The Function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
,
long
The fourth numeric argument.
arg4
)

Invokes a function with four numeric arguments, and returns a numeric value.

public final long
invokeNNNO1rN(Function
The Function to invoke.
function
,
long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Deprecated
Invokes a function with two numeric arguments, and returns a numeric value.
public final long
invokeNNNO2rN(Function
The Function to invoke.
function
,
long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)

Deprecated
Invokes a function with two numeric arguments, and returns a numeric value.
public final long

Returns:

A numeric value.
invokeNNNrN
(Function
The Function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
,
long
The third numeric argument.
arg3
)

Invokes a function with three numeric arguments, and returns a numeric value.

public final long
invokeNNO1rN(Function
The Function to invoke.
function
,
long
first numeric argument.
n1
,
long
second numeric argument.
n2
,
Object
array or buffer, to be passed as a pointer for the first numeric parameter.
o1
,
int
offset from the start of the array pr buffer.
o1off
,
int
length of the array to use.
o1len
,
ObjectParameterInfo
object flags (type, direction, parameter index).
o1flags
)

Deprecated
Invokes a function with two numeric arguments, and returns a numeric value.
public final long
invokeNNO2rN(Function
The Function to invoke.
function
,
long
first numeric argument.
n1
,
long
second numeric argument.
n2
,
Object
array or buffer, to be passed as a pointer for the first numeric parameter.
o1
,
int
offset from the start of the array pr buffer.
o1off
,
int
length of the array to use.
o1len
,
ObjectParameterInfo
object flags (type, direction, parameter index).
o1flags
,
Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)

Deprecated
Invokes a function with two numeric arguments, and returns a numeric value.
public final long

Returns:

A numeric value.
invokeNNrN
(Function
The Function to invoke.
function
,
long
The first numeric argument.
arg1
,
long
The second numeric argument.
arg2
)

Invokes a function with two numeric arguments, and returns a numeric value.

public final int

Returns:

A 32 bit integer value.
invokeNoErrnoIIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
,
int
The third 32 bit integer argument.
arg3
)

Deprecated
Invokes a function with three integer arguments, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeNoErrnoIIrI
(Function
The Function to invoke.
function
,
int
The first 32 bit integer argument.
arg1
,
int
The second 32 bit integer argument.
arg2
)

Deprecated
Invokes a function with two integer arguments, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeNoErrnoIrI
(Function
The Function to invoke.
function
,
int
A 32 bit integer argument.
arg1
)

Deprecated
Invokes a function with one integer argument, and returns a 32 bit integer.
public final int

Returns:

A 32 bit integer value.
invokeNoErrnoVrI
(Function
The Function to invoke.
function
)

Deprecated
Invokes a function with no arguments, and returns a 32 bit integer.
public final long

Returns:

A numeric value.
invokeNrN
(Function
The Function to invoke.
function
,
long
The numeric argument.
arg1
)

Invokes a function with one numeric argument, and returns a numeric value.

public final Object
public final byte[]

Returns:

A byte array with the return value encoded in native byte order.
invokeStruct
(Function
The Function to invoke.
function
,
HeapInvocationBuffer
The parameter buffer.
buffer
)

Invokes a function that returns a C struct by value.

public final byte[]

Returns:

A byte array with the return value encoded in native byte order.
invokeStruct
(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
The parameter buffer.
buffer
)

Invokes a function that returns a C struct by value.

public final void
invokeStruct(Function
The Function to invoke.
function
,
HeapInvocationBuffer
The parameter buffer.
buffer
,
byte[]
The output buffer to place the return value in.
returnBuffer
,
int
The offset within returnBuffer to place the return value.
offset
)

Invokes a function that returns a C struct by value.

public final void
invokeStruct(CallContext
The call context which describes how to call the native function.
ctx
,
long
The address of the native function to invoke.
function
,
HeapInvocationBuffer
The parameter buffer.
buffer
,
byte[]
The output buffer to place the return value in.
returnBuffer
,
int
The offset within returnBuffer to place the return value.
offset
)

Invokes a function that returns a C struct by value.

public final int

Returns:

A 32 bit integer value.
invokeVrI
(Function
The Function to invoke.
function
)

Deprecated
Invokes a function with no arguments, and returns a 32 bit integer.
public final long

Returns:

A 64 bit integer value.
invokeVrL
(Function
The Function to invoke.
function
)

Invokes a function with no arguments, and returns a 64 bit integer.

public final long

Returns:

A numeric value.
invokeVrN
(Function
The Function to invoke.
function
)

Invokes a function with no arguments, and returns a numeric value.

private static RuntimeException
private static RuntimeException
private static RuntimeException
newObjectCountError(int objCount)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait