/** * Invokes a function and returns a 64 bit integer value. * * @param function The <tt>Function</tt> to invoke. * @param buffer A buffer containing the arguments to the function. * @return A native memory address. */ public final long invokeLong(Function function, HeapInvocationBuffer buffer) { return invokeLong(function.getCallContext(), function.getFunctionAddress(), buffer); }
/** * Invokes a function and returns a native memory address. * * @param function The <tt>Function</tt> to invoke. * @param buffer A buffer containing the arguments to the function. * @return A native memory address. */ public long invokeAddress(Function function, HeapInvocationBuffer buffer) { return invokeAddress(function.getCallContext(), function.getFunctionAddress(), buffer); }
/** * Invokes a function and returns a 64 bit integer value. * * @param function The <tt>Function</tt> to invoke. * @param buffer A buffer containing the arguments to the function. * @return A native memory address. */ public final long invokeLong(Function function, HeapInvocationBuffer buffer) { return invokeLong(function.getCallContext(), function.getFunctionAddress(), buffer); }
/** * Invokes a function and returns a 32 bit integer value. * * @param function The <tt>Function</tt> to invoke. * @param buffer A buffer containing the arguments to the function. * @return A native memory address. */ public final int invokeInt(Function function, HeapInvocationBuffer buffer) { return invokeInt(function.getCallContext(), function.getFunctionAddress(), buffer); }
/** * Invokes a function and returns a 64 bit floating point value. * * @param function The <tt>Function</tt> to invoke. * @param buffer A buffer containing the arguments to the function. * @return A native memory address. */ public final BigDecimal invokeBigDecimal(Function function, HeapInvocationBuffer buffer) { return invokeBigDecimal(function.getCallContext(), function.getFunctionAddress(), buffer); }
@Override 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) { return foreign.invokeN6O1(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len); }
public final long invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) { return foreign.invokeN4O1(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, o1, o1flags.asObjectInfo(), o1off, o1len); }
@Override public long invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) { return foreign.invokeN5O1(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, o1, o1flags.asObjectInfo(), o1off, o1len); }
@Override public long invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) { return foreign.invokeN5O1(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, o1, o1flags.asObjectInfo(), o1off, o1len); }
@Override 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) { return foreign.invokeN6O1(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len); }
public final long invokeN1O1rN(Function function, long n1, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) { return foreign.invokeN1O1(function.getContextAddress(), function.getFunctionAddress(), n1, o1, o1flags.asObjectInfo(), o1off, o1len); }
@Override 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) { return foreign.invokeN5O2(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len); }
private long invokeO1(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) { return function.getReturnType().size() == 8 ? foreign.invokeArrayO1Int64(function.getContextAddress(), function.getFunctionAddress(), paramBuffer, o1, o1flags.asObjectInfo(), o1off, o1len) : foreign.invokeArrayO1Int32(function.getContextAddress(), function.getFunctionAddress(), paramBuffer, o1, o1flags.asObjectInfo(), o1off, o1len); }
@Override 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) { return foreign.invokeN6O2(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len); }
@Override 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) { return foreign.invokeN6O2(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len); }
@Override 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) { return foreign.invokeN5O2(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len); }
@Override 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) { return foreign.invokeN6O2(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len); }
private long invokeO1(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) { return function.getReturnType().size() == 8 ? foreign.invokeArrayO1Int64(function.getContextAddress(), function.getFunctionAddress(), paramBuffer, o1, o1flags.asObjectInfo(), o1off, o1len) : foreign.invokeArrayO1Int32(function.getContextAddress(), function.getFunctionAddress(), paramBuffer, o1, o1flags.asObjectInfo(), o1off, o1len); }
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) { return foreign.invokeN6O3(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len, o3, o3flags.asObjectInfo(), o3off, o3len); } }
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) { return foreign.invokeN6O3(function.getContextAddress(), function.getFunctionAddress(), n1, n2, n3, n4, n5, n6, o1, o1flags.asObjectInfo(), o1off, o1len, o2, o2flags.asObjectInfo(), o2off, o2len, o3, o3flags.asObjectInfo(), o3off, o3len); } }