Package com.kenai.jffi
Class ObjectParameterInfo
java.lang.Object
com.kenai.jffi.ObjectParameterInfo
public final class ObjectParameterInfo
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectParameterInfo.ComponentTypestatic classObjectParameterInfo.ObjectType -
Field Summary
Fields Modifier and Type Field Description static ObjectParameterInfo.ObjectTypeARRAYstatic ObjectParameterInfo.ComponentTypeBOOLEANstatic ObjectParameterInfo.ObjectTypeBUFFERstatic ObjectParameterInfo.ComponentTypeBYTEstatic ObjectParameterInfo.ComponentTypeCHARstatic intCLEARFor OUT arrays, clear the native memory area before passing to the native functionstatic ObjectParameterInfo.ComponentTypeDOUBLEstatic ObjectParameterInfo.ComponentTypeFLOATstatic intINCopy the array contents to native memory before calling the functionstatic ObjectParameterInfo.ComponentTypeINTstatic ObjectParameterInfo.ComponentTypeLONGstatic intNULTERMINATEAppend a NUL byte to the array contents after copying to native memorystatic intOUTAfter calling the function, reload the array contents from native memorystatic intPINNEDPin the array memory and pass the JVM memory pointer directly to the functionstatic ObjectParameterInfo.ComponentTypeSHORT -
Method Summary
Modifier and Type Method Description static ObjectParameterInfocreate(int parameterIndex, int ioflags)static ObjectParameterInfocreate(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags)booleanequals(java.lang.Object o)intgetParameterIndex()inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
IN
public static final int INCopy the array contents to native memory before calling the function- See Also:
- Constant Field Values
-
OUT
public static final int OUTAfter calling the function, reload the array contents from native memory- See Also:
- Constant Field Values
-
PINNED
public static final int PINNEDPin the array memory and pass the JVM memory pointer directly to the function- See Also:
- Constant Field Values
-
NULTERMINATE
public static final int NULTERMINATEAppend a NUL byte to the array contents after copying to native memory- See Also:
- Constant Field Values
-
CLEAR
public static final int CLEARFor OUT arrays, clear the native memory area before passing to the native function- See Also:
- Constant Field Values
-
ARRAY
-
BUFFER
-
BYTE
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
BOOLEAN
-
CHAR
-
-
Method Details
-
create
public static ObjectParameterInfo create(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags) -
create
-
getParameterIndex
public final int getParameterIndex() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-