JNI native zlib compression 🔥
This commit is contained in:
12
native/src/main/c/jni_util.c
Normal file
12
native/src/main/c/jni_util.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <jni.h>
|
||||
#include "jni_util.h"
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
throwException(JNIEnv *env, const char *type, const char *msg)
|
||||
{
|
||||
jclass klazz = (*env)->FindClass(env, type);
|
||||
|
||||
if (klazz != 0) {
|
||||
(*env)->ThrowNew(env, klazz, msg);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user