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
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
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)
-
create
public static ObjectParameterInfo create(int parameterIndex, int ioflags)
-
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
-
-