Package com.kenai.jffi
Class ObjectParameterInvoker
- java.lang.Object
-
- com.kenai.jffi.ObjectParameterInvoker
-
- Direct Known Subclasses:
HeapObjectParameterInvoker
,NativeObjectParameterInvoker
public abstract class ObjectParameterInvoker extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ObjectParameterInvoker.SingletonHolder
-
Constructor Summary
Constructors Constructor Description ObjectParameterInvoker()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ObjectParameterInvoker
getInstance()
abstract long
invokeN1O1rN(Function function, long n1, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
Invokes a function with one numeric argument (which may be a pointer), and returns a numeric value.abstract long
invokeN2O1rN(Function function, long n1, long n2, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
Invokes a function with two numeric arguments, and returns a numeric value.abstract long
invokeN2O2rN(Function function, long n1, long n2, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
Invokes a function with two numeric arguments, and returns a numeric value.abstract long
invokeN3O1rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
Invokes a function with two numeric arguments, and returns a numeric value.abstract long
invokeN3O2rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
abstract long
invokeN3O3rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
abstract long
invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
abstract long
invokeN4O2rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
abstract long
invokeN4O3rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
abstract long
invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
abstract long
invokeN5O2rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
abstract long
invokeN5O3rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
abstract long
invokeN6O1rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
abstract long
invokeN6O2rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
abstract long
invokeN6O3rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
abstract boolean
isNative()
(package private) static ObjectParameterInvoker
newHeapInvoker()
(package private) static ObjectParameterInvoker
newNativeInvoker()
-
-
-
Method Detail
-
getInstance
public static ObjectParameterInvoker getInstance()
-
newNativeInvoker
static ObjectParameterInvoker newNativeInvoker()
-
newHeapInvoker
static ObjectParameterInvoker newHeapInvoker()
-
isNative
public abstract boolean isNative()
-
invokeN1O1rN
public abstract long invokeN1O1rN(Function function, long n1, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
Invokes a function with one numeric argument (which may be a pointer), and returns a numeric value.- Parameters:
function
- TheFunction
to invoke.n1
- numeric argument.o1
- array or buffer, to be passed as a pointer for the first numeric parameter.o1off
- offset from the start of the array or buffer.o1len
- length of the array to use.o1flags
- object flags (type, direction, parameter index).
-
invokeN2O1rN
public abstract long invokeN2O1rN(Function function, long n1, long n2, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
Invokes a function with two numeric arguments, and returns a numeric value.- Parameters:
function
- TheFunction
to invoke.n1
- first numeric argument.n2
- The second numeric argument.o1
- An Object (array or buffer), to be passed as a pointer.o1off
- offset from the start of the array or buffer.o1len
- length of the array to use.o1flags
- object flags (type, direction, parameter index).
-
invokeN2O2rN
public abstract long invokeN2O2rN(Function function, long n1, long n2, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
Invokes a function with two numeric arguments, and returns a numeric value.- Parameters:
function
- TheFunction
to invoke.n1
- first numeric argument.n2
- The second numeric argument.o1
- An Object (array or buffer), to be passed as a pointer.o1off
- offset from the start of the array or buffer.o1len
- length of the array to use.o1flags
- object flags (type, direction, parameter index).o2
- An Object (array or buffer), to be passed as a pointer.o2off
- The offset from the start of the array or buffer.o2len
- The length of the array to use.o2flags
- Object flags (direction, type, idx).
-
invokeN3O1rN
public abstract long invokeN3O1rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
Invokes a function with two numeric arguments, and returns a numeric value.- Parameters:
function
- TheFunction
to invoke.n1
- first numeric argument.n2
- The second numeric argument.n3
- The second numeric argument.o1
- An Object (array or buffer), to be passed as a pointer.o1off
- offset from the start of the array or buffer.o1len
- length of the array to use.o1flags
- object flags (type, direction, parameter index).
-
invokeN3O2rN
public abstract long invokeN3O2rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
-
invokeN3O3rN
public abstract long invokeN3O3rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
-
invokeN4O1rN
public abstract long invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
-
invokeN4O2rN
public abstract long invokeN4O2rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
-
invokeN4O3rN
public abstract long invokeN4O3rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
-
invokeN5O1rN
public abstract long invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
-
invokeN5O2rN
public abstract long invokeN5O2rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
-
invokeN5O3rN
public abstract long invokeN5O3rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
-
invokeN6O1rN
public abstract long invokeN6O1rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
-
invokeN6O2rN
public abstract long invokeN6O2rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
-
invokeN6O3rN
public abstract long invokeN6O3rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, java.lang.Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
-
-