Top Fields Constructors Methods
com.kenai.jffi

pack-priv final Class HeapObjectParameterInvoker

extends ObjectParameterInvoker
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Foreign

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod 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)

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

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN1O1rN.

Invokes a function with one numeric argument (which may be a pointer), and returns a numeric value.
public long
invokeN2O1rN(Function
The Function to invoke.
function
,
long
first numeric argument.
n1
,
long
The second numeric argument.
n2
,
Object
An Object (array or buffer), to be passed as a pointer.
o1
,
int
offset from the start of the array or buffer.
o1off
,
int
length of the array to use.
o1len
,
ObjectParameterInfo
object flags (type, direction, parameter index).
o1flags
)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN2O1rN.

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

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN2O2rN.

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

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN3O1rN.

Invokes a function with two numeric arguments, and returns a numeric value.
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN3O2rN.

public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN3O3rN.

public long
invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN4O1rN.

public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN4O2rN.

public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN4O3rN.

public long
invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN5O1rN.

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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN5O2rN.

public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN5O3rN.

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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN6O1rN.

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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN6O2rN.

public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN6O3rN.

private long
invokeO1(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

private long
invokeO2(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)

private long
invokeO3(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)

public final boolean
Inherited from com.kenai.jffi.ObjectParameterInvoker:
getInstancenewHeapInvokernewNativeInvoker

Field Detail

foreignback to summary
private final Foreign foreign

Constructor Detail

HeapObjectParameterInvokerback to summary
pack-priv HeapObjectParameterInvoker(Foreign foreign)

Method Detail

encodeback to summary
private static int encode(HeapInvocationBuffer.Encoder encoder, byte[] paramBuffer, int off, Type type, long n)
encodeN3back to summary
private static byte[] encodeN3(Function function, long n1, long n2, long n3)
encodeN4back to summary
private static byte[] encodeN4(Function function, long n1, long n2, long n3, long n4)
encodeN5back to summary
private static byte[] encodeN5(Function function, long n1, long n2, long n3, long n4, long n5)
encodeN6back to summary
private static byte[] encodeN6(Function function, long n1, long n2, long n3, long n4, long n5, long n6)
invokeN1O1rNback to summary
public long invokeN1O1rN(Function function, long n1, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN1O1rN.

Doc from com.kenai.jffi.ObjectParameterInvoker.invokeN1O1rN.

Invokes a function with one numeric argument (which may be a pointer), and returns a numeric value.

Parameters
function:Function

The Function to invoke.

n1:long

numeric argument.

o1:Object

array or buffer, to be passed as a pointer for the first numeric parameter.

o1off:int

offset from the start of the array or buffer.

o1len:int

length of the array to use.

o1flags:ObjectParameterInfo

object flags (type, direction, parameter index).

invokeN2O1rNback to summary
public long invokeN2O1rN(Function function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN2O1rN.

Doc from com.kenai.jffi.ObjectParameterInvoker.invokeN2O1rN.

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

Parameters
function:Function

The Function to invoke.

n1:long

first numeric argument.

n2:long

The second numeric argument.

o1:Object

An Object (array or buffer), to be passed as a pointer.

o1off:int

offset from the start of the array or buffer.

o1len:int

length of the array to use.

o1flags:ObjectParameterInfo

object flags (type, direction, parameter index).

invokeN2O2rNback to summary
public long invokeN2O2rN(Function function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN2O2rN.

Doc from com.kenai.jffi.ObjectParameterInvoker.invokeN2O2rN.

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

Parameters
function:Function

The Function to invoke.

n1:long

first numeric argument.

n2:long

The second numeric argument.

o1:Object

An Object (array or buffer), to be passed as a pointer.

o1off:int

offset from the start of the array or buffer.

o1len:int

length of the array to use.

o1flags:ObjectParameterInfo

object flags (type, direction, parameter index).

o2:Object

An Object (array or buffer), to be passed as a pointer.

o2off:int

The offset from the start of the array or buffer.

o2len:int

The length of the array to use.

o2flags:ObjectParameterInfo

Object flags (direction, type, idx).

invokeN3O1rNback to summary
public long invokeN3O1rN(Function function, long n1, long n2, long n3, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN3O1rN.

Doc from com.kenai.jffi.ObjectParameterInvoker.invokeN3O1rN.

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

Parameters
function:Function

The Function to invoke.

n1:long

first numeric argument.

n2:long

The second numeric argument.

n3:long

The second numeric argument.

o1:Object

An Object (array or buffer), to be passed as a pointer.

o1off:int

offset from the start of the array or buffer.

o1len:int

length of the array to use.

o1flags:ObjectParameterInfo

object flags (type, direction, parameter index).

invokeN3O2rNback to summary
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN3O2rN.

invokeN3O3rNback to summary
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN3O3rN.

invokeN4O1rNback to summary
public long invokeN4O1rN(Function function, long n1, long n2, long n3, long n4, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN4O1rN.

invokeN4O2rNback to summary
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN4O2rN.

invokeN4O3rNback to summary
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN4O3rN.

invokeN5O1rNback to summary
public long invokeN5O1rN(Function function, long n1, long n2, long n3, long n4, long n5, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN5O1rN.

Annotations
@Override
invokeN5O2rNback to summary
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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN5O2rN.

Annotations
@Override
invokeN5O3rNback to summary
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN5O3rN.

invokeN6O1rNback to summary
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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN6O1rN.

Annotations
@Override
invokeN6O2rNback to summary
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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN6O2rN.

Annotations
@Override
invokeN6O3rNback to summary
public 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)

Implements abstract com.kenai.jffi.ObjectParameterInvoker.invokeN6O3rN.

invokeO1back to summary
private long invokeO1(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags)
invokeO2back to summary
private long invokeO2(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags)
invokeO3back to summary
private long invokeO3(Function function, byte[] paramBuffer, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags, Object o2, int o2off, int o2len, ObjectParameterInfo o2flags, Object o3, int o3off, int o3len, ObjectParameterInfo o3flags)
isNativeback to summary
public final boolean isNative()

Implements abstract com.kenai.jffi.ObjectParameterInvoker.isNative.