@Deprecated public class JNI extends Object
Constructor and Description |
---|
JNI()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
callSinglePointerArgVoidFunction(long functionPointer,
long pointerArg,
int callMode)
Deprecated.
|
static void |
deleteGlobalRef(long reference)
Deprecated.
Delete a global reference created by
newGlobalRef(java.lang.Object) |
static void |
deleteWeakGlobalRef(long reference)
Deprecated.
Delete a weak global reference created by
newWeakGlobalRef(java.lang.Object) |
static long |
getDirectBufferAddress(Buffer b)
Deprecated.
Get the native address pointed to by a direct buffer.
|
static long |
getDirectBufferCapacity(Buffer b)
Deprecated.
Get the capacity in bytes of a direct buffer.
|
static long |
getEnv()
Deprecated.
|
static Pointer<?> |
getGlobalPointer(Object object)
Deprecated.
|
static long |
getJVM()
Deprecated.
|
static ByteBuffer |
newDirectByteBuffer(long address,
long capacity)
Deprecated.
Wrap a native address as a direct byte buffer of the specified byte capacity.
|
static long |
newGlobalRef(Object object)
Deprecated.
Create a JNI global reference to a Java object : long value that can be safely passed to C programs and stored, which prevent the object from being garbage-collected and which validity runs until
deleteGlobalRef(long) is called |
static long |
newWeakGlobalRef(Object object)
Deprecated.
Create a JNI weak global reference to a Java object : long value that can be safely passed to C programs and stored, which validity runs until
deleteWeakGlobalRef(long) is called. |
static Object |
refToObject(long refPeer)
Deprecated.
|
public JNI()
@Deprecated public static long getEnv()
@Deprecated public static long getJVM()
@Deprecated public static Object refToObject(long refPeer)
public static long newGlobalRef(Object object)
deleteGlobalRef(long)
is calledpublic static void deleteGlobalRef(long reference)
newGlobalRef(java.lang.Object)
public static Pointer<?> getGlobalPointer(Object object)
public static long newWeakGlobalRef(Object object)
deleteWeakGlobalRef(long)
is called.public static void deleteWeakGlobalRef(long reference)
newWeakGlobalRef(java.lang.Object)
public static ByteBuffer newDirectByteBuffer(long address, long capacity)
public static long getDirectBufferAddress(Buffer b)
public static long getDirectBufferCapacity(Buffer b)
public static void callSinglePointerArgVoidFunction(long functionPointer, long pointerArg, int callMode)
Copyright © 2009-2020. All Rights Reserved.