com.kenai.jffi
Class ObjectParameterInfo

java.lang.Object
  extended by com.kenai.jffi.ObjectParameterInfo

public final class ObjectParameterInfo
extends java.lang.Object


Nested Class Summary
static class ObjectParameterInfo.ComponentType
           
static class ObjectParameterInfo.ObjectType
           
 
Field Summary
static ObjectParameterInfo.ObjectType ARRAY
           
static ObjectParameterInfo.ComponentType BOOLEAN
           
static ObjectParameterInfo.ObjectType BUFFER
           
static ObjectParameterInfo.ComponentType BYTE
           
static ObjectParameterInfo.ComponentType CHAR
           
static int CLEAR
          For OUT arrays, clear the native memory area before passing to the native function
static ObjectParameterInfo.ComponentType DOUBLE
           
static ObjectParameterInfo.ComponentType FLOAT
           
static int IN
          Copy the array contents to native memory before calling the function
static ObjectParameterInfo.ComponentType INT
           
static ObjectParameterInfo.ComponentType LONG
           
static int NULTERMINATE
          Append a NUL byte to the array contents after copying to native memory
static int OUT
          After calling the function, reload the array contents from native memory
static int PINNED
          Pin the array memory and pass the JVM memory pointer directly to the function
static ObjectParameterInfo.ComponentType SHORT
           
 
Method Summary
static ObjectParameterInfo create(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags)
           
 int getParameterIndex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IN

public static final int IN
Copy the array contents to native memory before calling the function

See Also:
Constant Field Values

OUT

public static final int OUT
After calling the function, reload the array contents from native memory

See Also:
Constant Field Values

PINNED

public static final int PINNED
Pin the array memory and pass the JVM memory pointer directly to the function

See Also:
Constant Field Values

NULTERMINATE

public static final int NULTERMINATE
Append a NUL byte to the array contents after copying to native memory

See Also:
Constant Field Values

CLEAR

public static final int CLEAR
For OUT arrays, clear the native memory area before passing to the native function

See Also:
Constant Field Values

ARRAY

public static final ObjectParameterInfo.ObjectType ARRAY

BUFFER

public static final ObjectParameterInfo.ObjectType BUFFER

BYTE

public static final ObjectParameterInfo.ComponentType BYTE

SHORT

public static final ObjectParameterInfo.ComponentType SHORT

INT

public static final ObjectParameterInfo.ComponentType INT

LONG

public static final ObjectParameterInfo.ComponentType LONG

FLOAT

public static final ObjectParameterInfo.ComponentType FLOAT

DOUBLE

public static final ObjectParameterInfo.ComponentType DOUBLE

BOOLEAN

public static final ObjectParameterInfo.ComponentType BOOLEAN

CHAR

public static final ObjectParameterInfo.ComponentType CHAR
Method Detail

create

public static ObjectParameterInfo create(int parameterIndex,
                                         ObjectParameterInfo.ObjectType objectType,
                                         ObjectParameterInfo.ComponentType componentType,
                                         int ioflags)

getParameterIndex

public final int getParameterIndex()