final class HeapObjectParameterInvoker extends ObjectParameterInvoker
Constructor and Description |
---|
HeapObjectParameterInvoker(Foreign foreign) |
Modifier and Type | Method and Description |
---|---|
private static int |
encode(HeapInvocationBuffer.Encoder encoder,
byte[] paramBuffer,
int off,
Type type,
long n) |
private static byte[] |
encodeN3(Function function,
long n1,
long n2,
long n3) |
private static byte[] |
encodeN4(Function function,
long n1,
long n2,
long n3,
long n4) |
private static byte[] |
encodeN5(Function function,
long n1,
long n2,
long n3,
long n4,
long n5) |
private static byte[] |
encodeN6(Function function,
long n1,
long n2,
long n3,
long n4,
long n5,
long n6) |
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.
|
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.
|
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.
|
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.
|
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) |
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) |
long |
invokeN4O1rN(Function function,
long n1,
long n2,
long n3,
long n4,
java.lang.Object o1,
int o1off,
int o1len,
ObjectParameterInfo o1flags) |
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) |
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) |
long |
invokeN5O1rN(Function function,
long n1,
long n2,
long n3,
long n4,
long n5,
java.lang.Object o1,
int o1off,
int o1len,
ObjectParameterInfo o1flags) |
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) |
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) |
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) |
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) |
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) |
private long |
invokeO1(Function function,
byte[] paramBuffer,
java.lang.Object o1,
int o1off,
int o1len,
ObjectParameterInfo o1flags) |
private long |
invokeO2(Function function,
byte[] paramBuffer,
java.lang.Object o1,
int o1off,
int o1len,
ObjectParameterInfo o1flags,
java.lang.Object o2,
int o2off,
int o2len,
ObjectParameterInfo o2flags) |
private long |
invokeO3(Function function,
byte[] paramBuffer,
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) |
boolean |
isNative() |
getInstance, newHeapInvoker, newNativeInvoker
private final Foreign foreign
HeapObjectParameterInvoker(Foreign foreign)
public final boolean isNative()
isNative
in class ObjectParameterInvoker
private static int encode(HeapInvocationBuffer.Encoder encoder, byte[] paramBuffer, int off, Type type, long n)
private long invokeO1(Function function, byte[] paramBuffer, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
private long invokeO2(Function function, byte[] paramBuffer, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, java.lang.Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
private long invokeO3(Function function, byte[] paramBuffer, 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)
public long invokeN1O1rN(Function function, long n1, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
ObjectParameterInvoker
invokeN1O1rN
in class ObjectParameterInvoker
function
- The Function 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).public long invokeN2O1rN(Function function, long n1, long n2, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
ObjectParameterInvoker
invokeN2O1rN
in class ObjectParameterInvoker
function
- The Function 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).public 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)
ObjectParameterInvoker
invokeN2O2rN
in class ObjectParameterInvoker
function
- The Function 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).private static byte[] encodeN3(Function function, long n1, long n2, long n3)
public long invokeN3O1rN(Function function, long n1, long n2, long n3, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
ObjectParameterInvoker
invokeN3O1rN
in class ObjectParameterInvoker
function
- The Function 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).public 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)
invokeN3O2rN
in class ObjectParameterInvoker
public 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)
invokeN3O3rN
in class ObjectParameterInvoker
private static byte[] encodeN4(Function function, long n1, long n2, long n3, long n4)
public long invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
invokeN4O1rN
in class ObjectParameterInvoker
public 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)
invokeN4O2rN
in class ObjectParameterInvoker
public 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)
invokeN4O3rN
in class ObjectParameterInvoker
private static byte[] encodeN5(Function function, long n1, long n2, long n3, long n4, long n5)
public long invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, java.lang.Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
invokeN5O1rN
in class ObjectParameterInvoker
public 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)
invokeN5O2rN
in class ObjectParameterInvoker
public 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)
invokeN5O3rN
in class ObjectParameterInvoker
private static byte[] encodeN6(Function function, long n1, long n2, long n3, long n4, long n5, long n6)
public 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)
invokeN6O1rN
in class ObjectParameterInvoker
public 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)
invokeN6O2rN
in class ObjectParameterInvoker
public 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)
invokeN6O3rN
in class ObjectParameterInvoker