| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | CLEAR
For OUT arrays, clear the temporary native memory area |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | IN
Copy the array contents to native memory before calling the function |
| pack-priv static final int | |
| pack-priv static final int | |
| private int[] | info
The flags/offset/length descriptor array. |
| private int | infoIndex
The index of the next descriptor storage slot |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | JNIENV
The JNIEnv address |
| public static final int | JNIOBJECT
The jobject handle |
| pack-priv static final int | |
| private int | objectIndex
The index of the next object storage slot |
| private Object[] | objects
The objects stored in this buffer |
| public static final int | OUT
After calling the function, reload the array contents from native memory |
| public static final int | PINNED
Pin the array memory and pass the JVM memory pointer directly to the function |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | ZERO_TERMINATE
Append a NUL byte to the array contents after copying to native memory |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private final void | |
| pack-priv final int[] | |
| pack-priv static final int | Returns: A bitmask of flags.The parameter index of the buffer. index)Encodes the native object flags for an NIO Buffer. |
| private static final int | |
| pack-priv static final int | Returns: A bitmask of flags.The array flags (IN, OUT) for the object. ioflags, int The type of the object. type, int The parameter index the object should be passed as. index)Encodes the native object flags for an array. |
| pack-priv final int | Returns: the number of objects already stored.Gets the number of objects stored in this |
| pack-priv final Object[] | |
| public void | putArray(int index, byte[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT, NULTERMINATE) flags)Adds a java byte array as a pointer parameter. |
| public void | putArray(int index, short[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java short array as a pointer parameter. |
| public void | putArray(int index, int[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java int array as a pointer parameter. |
| public void | putArray(int index, long[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java long array as a pointer parameter. |
| public void | putArray(int index, float[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java float array as a pointer parameter. |
| public void | putArray(int index, double[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java double array as a pointer parameter. |
| public void | putArray(int index, boolean[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java boolean array as a pointer parameter. |
| public void | putArray(int index, char[]
The java array to use as the pointer parameter. array, int The offset from the start of the array. offset, int The length of the array to use. length, int The flags to use (IN, OUT) flags)Adds a java char array as a pointer parameter. |
| public void | putDirectBuffer(int
The buffer to use as a pointer argument. index, Buffer obj, int An offset to add to the buffer native address. offset, int The length of the buffer to use. length)Adds a java direct buffer as a pointer parameter. |
| public void | |
| pack-priv void |
| ARRAY | back to summary |
|---|---|
| pack-priv static final int ARRAY
| |
| BOOLEAN | back to summary |
|---|---|
| pack-priv static final int BOOLEAN
| |
| BUFFER | back to summary |
|---|---|
| pack-priv static final int BUFFER
| |
| BYTE | back to summary |
|---|---|
| pack-priv static final int BYTE
| |
| CHAR | back to summary |
|---|---|
| pack-priv static final int CHAR
| |
| CLEAR | back to summary |
|---|---|
| public static final int CLEAR For OUT arrays, clear the temporary native memory area | |
| DOUBLE | back to summary |
|---|---|
| pack-priv static final int DOUBLE
| |
| FLAGS_MASK | back to summary |
|---|---|
| pack-priv static final int FLAGS_MASK
| |
| FLAGS_SHIFT | back to summary |
|---|---|
| pack-priv static final int FLAGS_SHIFT
| |
| FLOAT | back to summary |
|---|---|
| pack-priv static final int FLOAT
| |
| IN | back to summary |
|---|---|
| public static final int IN Copy the array contents to native memory before calling the function | |
| INDEX_MASK | back to summary |
|---|---|
| pack-priv static final int INDEX_MASK
| |
| INDEX_SHIFT | back to summary |
|---|---|
| pack-priv static final int INDEX_SHIFT
| |
| info | back to summary |
|---|---|
| private int[] info The flags/offset/length descriptor array. Along with each object, a 3-tuple is stored in the descriptor array. The first element of the tuple stores a mask of the type, parameter index and array flags The second element stores the offset within the array the data starts. The third element stores the length of data. | |
| infoIndex | back to summary |
|---|---|
| private int infoIndex The index of the next descriptor storage slot | |
| INT | back to summary |
|---|---|
| pack-priv static final int INT
| |
| JNI | back to summary |
|---|---|
| pack-priv static final int JNI
| |
| JNIENV | back to summary |
|---|---|
| public static final int JNIENV The JNIEnv address | |
| JNIOBJECT | back to summary |
|---|---|
| public static final int JNIOBJECT The jobject handle | |
| LONG | back to summary |
|---|---|
| pack-priv static final int LONG
| |
| objectIndex | back to summary |
|---|---|
| private int objectIndex The index of the next object storage slot | |
| objects | back to summary |
|---|---|
| private Object[] objects The objects stored in this buffer | |
| OUT | back to summary |
|---|---|
| public static final int OUT After calling the function, reload the array contents from native memory | |
| PINNED | back to summary |
|---|---|
| public static final int PINNED Pin the array memory and pass the JVM memory pointer directly to the function | |
| PRIM_MASK | back to summary |
|---|---|
| pack-priv static final int PRIM_MASK
| |
| SHORT | back to summary |
|---|---|
| pack-priv static final int SHORT
| |
| TYPE_MASK | back to summary |
|---|---|
| pack-priv static final int TYPE_MASK
| |
| TYPE_SHIFT | back to summary |
|---|---|
| pack-priv static final int TYPE_SHIFT
| |
| ZERO_TERMINATE | back to summary |
|---|---|
| public static final int ZERO_TERMINATE Append a NUL byte to the array contents after copying to native memory | |
| ObjectBuffer | back to summary |
|---|---|
| pack-priv ObjectBuffer() | |
| ObjectBuffer | back to summary |
|---|---|
| pack-priv ObjectBuffer(int objectCount) | |
| ensureSpace | back to summary |
|---|---|
| private final void ensureSpace() Ensures that sufficient space is available to insert at least one more object | |
| info | back to summary |
|---|---|
| pack-priv final int[] info() Gets the object descriptor array.
| |
| makeBufferFlags | back to summary |
|---|---|
| pack-priv static final int makeBufferFlags(int index) Encodes the native object flags for an NIO Buffer.
| |
| makeJNIFlags | back to summary |
|---|---|
| private static final int makeJNIFlags(int index, int type) | |
| makeObjectFlags | back to summary |
|---|---|
| pack-priv static final int makeObjectFlags(int ioflags, int type, int index) Encodes the native object flags for an array.
| |
| objectCount | back to summary |
|---|---|
| pack-priv final int objectCount() Gets the number of objects stored in this
| |
| objects | back to summary |
|---|---|
| pack-priv final Object[] objects() Gets the array of stored objects.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, byte[] array, int offset, int length, int flags) Adds a java byte array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, short[] array, int offset, int length, int flags) Adds a java short array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, int[] array, int offset, int length, int flags) Adds a java int array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, long[] array, int offset, int length, int flags) Adds a java long array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, float[] array, int offset, int length, int flags) Adds a java float array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, double[] array, int offset, int length, int flags) Adds a java double array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, boolean[] array, int offset, int length, int flags) Adds a java boolean array as a pointer parameter.
| |
| putArray | back to summary |
|---|---|
| public void putArray(int index, char[] array, int offset, int length, int flags) Adds a java char array as a pointer parameter.
| |
| putDirectBuffer | back to summary |
|---|---|
| public void putDirectBuffer(int index, Buffer obj, int offset, int length) Adds a java direct buffer as a pointer parameter.
| |
| putJNI | back to summary |
|---|---|
| public void putJNI(int index, Object obj, int type) Put the address of the current JNIEnv into this parameter position
| |
| putObject | back to summary |
|---|---|
| pack-priv void putObject(Object array, int offset, int length, int flags) | |