|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kenai.jffi.ArrayFlags
public final class ArrayFlags
Flags to use when adding an array as a pointer parameter
Field Summary | |
---|---|
static int |
CLEAR
For OUT arrays, clear the native memory area before passing to the native function |
static int |
IN
Copy the array contents to native memory before calling the function |
static int |
NULTERMINATE
Append a NUL byte to the array contents after copying to native memory |
static int |
OUT
After calling the function, reload the array contents from native memory |
static int |
PINNED
Pin the array memory and pass the JVM memory pointer directly to the function |
Method Summary | |
---|---|
static boolean |
isIn(int flags)
Tests if the flags indicate data should be copied to native memory. |
static boolean |
isOut(int flags)
Tests if the flags indicate data should be copied from native memory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IN
public static final int OUT
public static final int PINNED
public static final int NULTERMINATE
public static final int CLEAR
Method Detail |
---|
public static final boolean isOut(int flags)
flags
- The array flags. Any combination of IN | OUT | PINNED | NULTERMINATE.
public static final boolean isIn(int flags)
flags
- The array flags. Any combination of IN | OUT | PINNED | NULTERMINATE.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |