public final class ArrayFlags extends Object
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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.Copyright © 2018. All rights reserved.