|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kenai.jffi.InvocationBuffer
public abstract class InvocationBuffer
A parameter buffer used when invoking a function
| Constructor Summary | |
|---|---|
InvocationBuffer()
|
|
| Method Summary | |
|---|---|
abstract void |
putAddress(long value)
Adds a native address parameter. |
abstract void |
putArray(byte[] value,
int offset,
int length,
int flags)
Adds a java byte array as a pointer parameter. |
abstract void |
putArray(double[] value,
int offset,
int length,
int flags)
Adds a java double array as a pointer parameter. |
abstract void |
putArray(float[] value,
int offset,
int length,
int flags)
Adds a java float array as a pointer parameter. |
abstract void |
putArray(int[] value,
int offset,
int length,
int flags)
Adds a java int array as a pointer parameter. |
abstract void |
putArray(long[] value,
int offset,
int length,
int flags)
Adds a java long array as a pointer parameter. |
abstract void |
putArray(short[] value,
int offset,
int length,
int flags)
Adds a java short array as a pointer parameter. |
abstract void |
putByte(int value)
Adds an 8 bit integer parameter. |
abstract void |
putDirectBuffer(Buffer buffer,
int offset,
int length)
Adds a java direct buffer as a pointer parameter. |
abstract void |
putDouble(double value)
Adds a 64 bit floating point parameter. |
abstract void |
putFloat(float value)
Adds a 32 bit floating point parameter. |
abstract void |
putInt(int value)
Adds a 32 bit integer parameter. |
abstract void |
putLong(long value)
Adds a 64 bit integer parameter. |
abstract void |
putShort(int value)
Adds a 16 bit integer parameter. |
abstract void |
putStruct(byte[] struct,
int offset)
Adds a struct or union as a parameter. |
abstract void |
putStruct(long struct)
Adds a struct or union as a parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationBuffer()
| Method Detail |
|---|
public abstract void putByte(int value)
value - An 8 bit integer value to use as the parameter.public abstract void putShort(int value)
value - A 16 bit integer value to use as the parameter.public abstract void putInt(int value)
value - A 32 bit integer value to use as the parameter.public abstract void putLong(long value)
value - A 64 bit integer value to use as the parameter.public abstract void putFloat(float value)
value - A 32 bit floating point value to use as the parameter.public abstract void putDouble(double value)
value - A 64 bit floating point value to use as the parameter.public abstract void putAddress(long value)
value - A native address value to use as the parameter.
public abstract void putArray(byte[] value,
int offset,
int length,
int flags)
value - The java array to use as the pointer parameter.offset - The offset from the start of the array.length - The length of the array to use.flags - The flags to use (IN, OUT)
public abstract void putArray(short[] value,
int offset,
int length,
int flags)
value - The java array to use as the pointer parameter.offset - The offset from the start of the array.length - The length of the array to use.flags - The flags to use (IN, OUT)
public abstract void putArray(int[] value,
int offset,
int length,
int flags)
value - The java array to use as the pointer parameter.offset - The offset from the start of the array.length - The length of the array to use.flags - The flags to use (IN, OUT)
public abstract void putArray(long[] value,
int offset,
int length,
int flags)
value - The java array to use as the pointer parameter.offset - The offset from the start of the array.length - The length of the array to use.flags - The flags to use (IN, OUT)
public abstract void putArray(float[] value,
int offset,
int length,
int flags)
value - The java array to use as the pointer parameter.offset - The offset from the start of the array.length - The length of the array to use.flags - The flags to use (IN, OUT)
public abstract void putArray(double[] value,
int offset,
int length,
int flags)
value - The java array to use as the pointer parameter.offset - The offset from the start of the array.length - The length of the array to use.flags - The flags to use (IN, OUT)
public abstract void putDirectBuffer(Buffer buffer,
int offset,
int length)
buffer - The buffer to use as a pointer argument.offset - An offset to add to the buffer native address.length - The length of the buffer to use.
public abstract void putStruct(byte[] struct,
int offset)
struct - A java byte array with the struct contents.offset - The offset from the start of the array.public abstract void putStruct(long struct)
struct - The native address to use as the struct contents.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||