Class ObjectParameterInfo
java.lang.Object
com.kenai.jffi.ObjectParameterInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectParameterInfo.ObjectTypestatic final ObjectParameterInfo.ComponentTypestatic final ObjectParameterInfo.ObjectTypestatic final ObjectParameterInfo.ComponentTypeprivate static final ConcurrentMap<Integer, ObjectParameterInfo> static final ObjectParameterInfo.ComponentTypestatic final intFor OUT arrays, clear the native memory area before passing to the native functionstatic final ObjectParameterInfo.ComponentTypestatic final ObjectParameterInfo.ComponentTypestatic final intCopy the array contents to native memory before calling the functionstatic final ObjectParameterInfo.ComponentTypeprivate final intstatic final ObjectParameterInfo.ComponentTypestatic final intAppend a NUL byte to the array contents after copying to native memoryprivate final intstatic final intAfter calling the function, reload the array contents from native memoryprivate final intstatic final intPin the array memory and pass the JVM memory pointer directly to the functionstatic final ObjectParameterInfo.ComponentType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final intstatic ObjectParameterInfocreate(int parameterIndex, int ioflags) static ObjectParameterInfocreate(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags) booleanprivate static ObjectParameterInfogetCachedInfo(int objectInfo) final intinthashCode()(package private) final intioflags()
-
Field Details
-
CACHE
-
parameterIndex
private final int parameterIndex -
ioflags
private final int ioflags -
objectInfo
private final int objectInfo -
IN
public static final int INCopy the array contents to native memory before calling the function- See Also:
-
OUT
public static final int OUTAfter calling the function, reload the array contents from native memory- See Also:
-
PINNED
public static final int PINNEDPin the array memory and pass the JVM memory pointer directly to the function- See Also:
-
NULTERMINATE
public static final int NULTERMINATEAppend a NUL byte to the array contents after copying to native memory- See Also:
-
CLEAR
public static final int CLEARFor OUT arrays, clear the native memory area before passing to the native function- See Also:
-
ARRAY
-
BUFFER
-
BYTE
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
BOOLEAN
-
CHAR
-
-
Constructor Details
-
ObjectParameterInfo
private ObjectParameterInfo(int objectInfo)
-
-
Method Details
-
create
public static ObjectParameterInfo create(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags) -
create
-
getCachedInfo
-
asObjectInfo
final int asObjectInfo() -
ioflags
final int ioflags() -
getParameterIndex
public final int getParameterIndex() -
equals
-
hashCode
-