Top Description Constructors Methods
com.kenai.jffi

public abstract Class InvocationBuffer

extends Object
Class Inheritance
Known Direct Subclasses
com.kenai.jffi.HeapInvocationBuffer
Imports
java.nio.Buffer

A parameter buffer used when invoking a function

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
putAddress(final long
A native address value to use as the parameter.
value
)

Adds a native address parameter.

public abstract void
putArray(final byte[]
The java array to use as the pointer parameter.
value
,
int
The offset from the start of the array.
offset
,
int
The length of the array to use.
length
,
int
The flags to use (IN, OUT)
flags
)

Adds a java byte array as a pointer parameter.

public abstract void
putArray(final short[]
The java array to use as the pointer parameter.
value
,
int
The offset from the start of the array.
offset
,
int
The length of the array to use.
length
,
int
The flags to use (IN, OUT)
flags
)

Adds a java short array as a pointer parameter.

public abstract void
putArray(final int[]
The java array to use as the pointer parameter.
value
,
int
The offset from the start of the array.
offset
,
int
The length of the array to use.
length
,
int
The flags to use (IN, OUT)
flags
)

Adds a java int array as a pointer parameter.

public abstract void
putArray(final long[]
The java array to use as the pointer parameter.
value
,
int
The offset from the start of the array.
offset
,
int
The length of the array to use.
length
,
int
The flags to use (IN, OUT)
flags
)

Adds a java long array as a pointer parameter.

public abstract void
putArray(final float[]
The java array to use as the pointer parameter.
value
,
int
The offset from the start of the array.
offset
,
int
The length of the array to use.
length
,
int
The flags to use (IN, OUT)
flags
)

Adds a java float array as a pointer parameter.

public abstract void
putArray(final double[]
The java array to use as the pointer parameter.
value
,
int
The offset from the start of the array.
offset
,
int
The length of the array to use.
length
,
int
The flags to use (IN, OUT)
flags
)

Adds a java double array as a pointer parameter.

public abstract void
putByte(final int
An 8 bit integer value to use as the parameter.
value
)

Adds an 8 bit integer parameter.

public abstract void
putDirectBuffer(final Buffer
The buffer to use as a pointer argument.
buffer
,
int
An offset to add to the buffer native address.
offset
,
int
The length of the buffer to use.
length
)

Adds a java direct buffer as a pointer parameter.

public abstract void
putDouble(final double
A 64 bit floating point value to use as the parameter.
value
)

Adds a 64 bit floating point parameter.

public abstract void
putFloat(final float
A 32 bit floating point value to use as the parameter.
value
)

Adds a 32 bit floating point parameter.

public abstract void
putInt(final int
A 32 bit integer value to use as the parameter.
value
)

Adds a 32 bit integer parameter.

public abstract void
putLong(final long
A 64 bit integer value to use as the parameter.
value
)

Adds a 64 bit integer parameter.

public abstract void
putShort(final int
A 16 bit integer value to use as the parameter.
value
)

Adds a 16 bit integer parameter.

public abstract void
putStruct(final byte[]
A java byte array with the struct contents.
struct
,
int
The offset from the start of the array.
offset
)

Adds a struct or union as a parameter.

public abstract void
putStruct(final long
The native address to use as the struct contents.
struct
)

Adds a struct or union as a parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InvocationBufferback to summary
public InvocationBuffer()

Method Detail

putAddressback to summary
public abstract void putAddress(final long value)

Adds a native address parameter.

Parameters
value:long

A native address value to use as the parameter.

putArrayback to summary
public abstract void putArray(final byte[] value, int offset, int length, int flags)

Adds a java byte array as a pointer parameter.

Parameters
value:byte[]

The java array to use as the pointer parameter.

offset:int

The offset from the start of the array.

length:int

The length of the array to use.

flags:int

The flags to use (IN, OUT)

putArrayback to summary
public abstract void putArray(final short[] value, int offset, int length, int flags)

Adds a java short array as a pointer parameter.

Parameters
value:short[]

The java array to use as the pointer parameter.

offset:int

The offset from the start of the array.

length:int

The length of the array to use.

flags:int

The flags to use (IN, OUT)

putArrayback to summary
public abstract void putArray(final int[] value, int offset, int length, int flags)

Adds a java int array as a pointer parameter.

Parameters
value:int[]

The java array to use as the pointer parameter.

offset:int

The offset from the start of the array.

length:int

The length of the array to use.

flags:int

The flags to use (IN, OUT)

putArrayback to summary
public abstract void putArray(final long[] value, int offset, int length, int flags)

Adds a java long array as a pointer parameter.

Parameters
value:long[]

The java array to use as the pointer parameter.

offset:int

The offset from the start of the array.

length:int

The length of the array to use.

flags:int

The flags to use (IN, OUT)

putArrayback to summary
public abstract void putArray(final float[] value, int offset, int length, int flags)

Adds a java float array as a pointer parameter.

Parameters
value:float[]

The java array to use as the pointer parameter.

offset:int

The offset from the start of the array.

length:int

The length of the array to use.

flags:int

The flags to use (IN, OUT)

putArrayback to summary
public abstract void putArray(final double[] value, int offset, int length, int flags)

Adds a java double array as a pointer parameter.

Parameters
value:double[]

The java array to use as the pointer parameter.

offset:int

The offset from the start of the array.

length:int

The length of the array to use.

flags:int

The flags to use (IN, OUT)

putByteback to summary
public abstract void putByte(final int value)

Adds an 8 bit integer parameter.

Parameters
value:int

An 8 bit integer value to use as the parameter.

putDirectBufferback to summary
public abstract void putDirectBuffer(final Buffer buffer, int offset, int length)

Adds a java direct buffer as a pointer parameter.

Parameters
buffer:Buffer

The buffer to use as a pointer argument.

offset:int

An offset to add to the buffer native address.

length:int

The length of the buffer to use.

putDoubleback to summary
public abstract void putDouble(final double value)

Adds a 64 bit floating point parameter.

Parameters
value:double

A 64 bit floating point value to use as the parameter.

putFloatback to summary
public abstract void putFloat(final float value)

Adds a 32 bit floating point parameter.

Parameters
value:float

A 32 bit floating point value to use as the parameter.

putIntback to summary
public abstract void putInt(final int value)

Adds a 32 bit integer parameter.

Parameters
value:int

A 32 bit integer value to use as the parameter.

putLongback to summary
public abstract void putLong(final long value)

Adds a 64 bit integer parameter.

Parameters
value:long

A 64 bit integer value to use as the parameter.

putShortback to summary
public abstract void putShort(final int value)

Adds a 16 bit integer parameter.

Parameters
value:int

A 16 bit integer value to use as the parameter.

putStructback to summary
public abstract void putStruct(final byte[] struct, int offset)

Adds a struct or union as a parameter. This passes the struct or union by value, not by reference.

Parameters
struct:byte[]

A java byte array with the struct contents.

offset:int

The offset from the start of the array.

putStructback to summary
public abstract void putStruct(final long struct)

Adds a struct or union as a parameter. This passes the struct or union by value, not by reference.

Parameters
struct:long

The native address to use as the struct contents.