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 class
ObjectParameterInfo.ComponentType
static class
ObjectParameterInfo.ObjectType
-
Field Summary
Fields Modifier and Type Field Description static ObjectParameterInfo.ObjectType
ARRAY
static ObjectParameterInfo.ComponentType
BOOLEAN
static ObjectParameterInfo.ObjectType
BUFFER
static ObjectParameterInfo.ComponentType
BYTE
private static java.util.concurrent.ConcurrentMap<java.lang.Integer,ObjectParameterInfo>
CACHE
static ObjectParameterInfo.ComponentType
CHAR
static int
CLEAR
For OUT arrays, clear the native memory area before passing to the native functionstatic ObjectParameterInfo.ComponentType
DOUBLE
static ObjectParameterInfo.ComponentType
FLOAT
static int
IN
Copy the array contents to native memory before calling the functionstatic ObjectParameterInfo.ComponentType
INT
private int
ioflags
static ObjectParameterInfo.ComponentType
LONG
static int
NULTERMINATE
Append a NUL byte to the array contents after copying to native memoryprivate int
objectInfo
static int
OUT
After calling the function, reload the array contents from native memoryprivate int
parameterIndex
static int
PINNED
Pin the array memory and pass the JVM memory pointer directly to the functionstatic ObjectParameterInfo.ComponentType
SHORT
-
Constructor Summary
Constructors Modifier Constructor Description private
ObjectParameterInfo(int objectInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
asObjectInfo()
static ObjectParameterInfo
create(int parameterIndex, int ioflags)
static ObjectParameterInfo
create(int parameterIndex, ObjectParameterInfo.ObjectType objectType, ObjectParameterInfo.ComponentType componentType, int ioflags)
boolean
equals(java.lang.Object o)
private static ObjectParameterInfo
getCachedInfo(int objectInfo)
int
getParameterIndex()
int
hashCode()
(package private) int
ioflags()
-
-
-
Field Detail
-
CACHE
private static final java.util.concurrent.ConcurrentMap<java.lang.Integer,ObjectParameterInfo> CACHE
-
parameterIndex
private final int parameterIndex
-
ioflags
private final int ioflags
-
objectInfo
private final int objectInfo
-
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)
-
getCachedInfo
private static ObjectParameterInfo getCachedInfo(int objectInfo)
-
asObjectInfo
final int asObjectInfo()
-
ioflags
final int ioflags()
-
getParameterIndex
public final int getParameterIndex()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-