Package com.kenai.jffi
Class NativeObjectParameterInvoker
java.lang.Object
com.kenai.jffi.ObjectParameterInvoker
com.kenai.jffi.NativeObjectParameterInvoker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal long
invokeN1O1
(CallContext ctx, long fn, long n1, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) final long
invokeN1O1rN
(Function function, long n1, 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.final long
invokeN2O1
(CallContext ctx, long function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Invokes a function with two numeric arguments, and returns a numeric value.final long
invokeN2O1rN
(Function function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Invokes a function with two numeric arguments, and returns a numeric value.final long
invokeN2O2rN
(Function function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) Invokes a function with two numeric arguments, and returns a numeric value.final long
invokeN3O1rN
(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Invokes a function with two numeric arguments, and returns a numeric value.final long
invokeN3O2rN
(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) Invokes a function with two numeric arguments, and returns a numeric value.final long
invokeN3O3rN
(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) final long
invokeN4O1rN
(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) final long
invokeN4O2rN
(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) final long
invokeN4O3rN
(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) long
invokeN5O1rN
(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) long
invokeN5O2rN
(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) final long
invokeN5O3rN
(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) long
invokeN6O1rN
(Function function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) long
invokeN6O2rN
(Function function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) final long
invokeN6O3rN
(Function function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) final boolean
isNative()
Methods inherited from class com.kenai.jffi.ObjectParameterInvoker
getInstance, newHeapInvoker, newNativeInvoker
-
Field Details
-
foreign
-
-
Constructor Details
-
NativeObjectParameterInvoker
NativeObjectParameterInvoker(Foreign foreign)
-
-
Method Details
-
isNative
public final boolean isNative()- Specified by:
isNative
in classObjectParameterInvoker
-
invokeN1O1rN
public final long invokeN1O1rN(Function function, long n1, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Description copied from class:ObjectParameterInvoker
Invokes a function with one numeric argument (which may be a pointer), and returns a numeric value.- Specified by:
invokeN1O1rN
in classObjectParameterInvoker
- 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).
-
invokeN1O1
public final long invokeN1O1(CallContext ctx, long fn, long n1, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) -
invokeN2O1rN
public final long invokeN2O1rN(Function function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Invokes a function with two numeric arguments, and returns a numeric value.- Specified by:
invokeN2O1rN
in classObjectParameterInvoker
- Parameters:
function
- TheFunction
to invoke.n1
- first numeric argument.n2
- The second 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).
-
invokeN2O1
public final long invokeN2O1(CallContext ctx, long function, long n1, long n2, 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
- 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).
-
invokeN2O2rN
public final long invokeN2O2rN(Function function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) Invokes a function with two numeric arguments, and returns a numeric value.- Specified by:
invokeN2O2rN
in classObjectParameterInvoker
- Parameters:
function
- TheFunction
to invoke.n1
- The first numeric argument.n2
- The second numeric argument.o1
- An Object (array or buffer), to be passed as a pointer.o1off
- The offset from the start of the array or buffer.o1len
- The length of the array to use.o1flags
- Object flags (direction, type, 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 final long invokeN3O1rN(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Invokes a function with two numeric arguments, and returns a numeric value.- Specified by:
invokeN3O1rN
in classObjectParameterInvoker
- Parameters:
function
- TheFunction
to invoke.n1
- The first numeric argument.n2
- The second numeric argument.n3
- The third numeric argument.o1
- An Object (array or buffer), to be passed as a pointer.o1off
- The offset from the start of the array or buffer.o1len
- The length of the array to use.o1flags
- Object flags (direction, type, parameter index).
-
invokeN3O2rN
public final long invokeN3O2rN(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) Invokes a function with two numeric arguments, and returns a numeric value.- Specified by:
invokeN3O2rN
in classObjectParameterInvoker
- Parameters:
function
- TheFunction
to invoke.n1
- The first numeric argument.n2
- The second numeric argument.n3
- The third numeric argument.o1
- An Object (array or buffer), to be passed as a pointer.o1off
- The offset from the start of the array or buffer.o1len
- The length of the array to use.o1flags
- Object flags (direction, type, 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).
-
invokeN3O3rN
public final long invokeN3O3rN(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) - Specified by:
invokeN3O3rN
in classObjectParameterInvoker
-
invokeN4O1rN
public final long invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) - Specified by:
invokeN4O1rN
in classObjectParameterInvoker
-
invokeN4O2rN
public final long invokeN4O2rN(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) - Specified by:
invokeN4O2rN
in classObjectParameterInvoker
-
invokeN4O3rN
public final long invokeN4O3rN(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) - Specified by:
invokeN4O3rN
in classObjectParameterInvoker
-
invokeN5O1rN
public long invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) - Specified by:
invokeN5O1rN
in classObjectParameterInvoker
-
invokeN5O2rN
public long invokeN5O2rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) - Specified by:
invokeN5O2rN
in classObjectParameterInvoker
-
invokeN5O3rN
public final long invokeN5O3rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) - Specified by:
invokeN5O3rN
in classObjectParameterInvoker
-
invokeN6O1rN
public long invokeN6O1rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) - Specified by:
invokeN6O1rN
in classObjectParameterInvoker
-
invokeN6O2rN
public long invokeN6O2rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags) - Specified by:
invokeN6O2rN
in classObjectParameterInvoker
-
invokeN6O3rN
public final long invokeN6O3rN(Function function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags) - Specified by:
invokeN6O3rN
in classObjectParameterInvoker
-