Package com.kenai.jffi
Class ObjectParameterInfo
java.lang.Object
com.kenai.jffi.ObjectParameterInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectParameterInfo.ObjectType
static final ObjectParameterInfo.ComponentType
static final ObjectParameterInfo.ObjectType
static final ObjectParameterInfo.ComponentType
private static final ConcurrentMap<Integer,
ObjectParameterInfo> static final ObjectParameterInfo.ComponentType
static final int
For OUT arrays, clear the native memory area before passing to the native functionstatic final ObjectParameterInfo.ComponentType
static final ObjectParameterInfo.ComponentType
static final int
Copy the array contents to native memory before calling the functionstatic final ObjectParameterInfo.ComponentType
private final int
static final ObjectParameterInfo.ComponentType
static final int
Append a NUL byte to the array contents after copying to native memoryprivate final int
static final int
After calling the function, reload the array contents from native memoryprivate final int
static final int
Pin 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 int
static ObjectParameterInfo
create
(int parameterIndex, int ioflags) static ObjectParameterInfo
create
(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags) boolean
private static ObjectParameterInfo
getCachedInfo
(int objectInfo) final int
int
hashCode()
(package private) final int
ioflags()
-
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
public int hashCode()
-