JNI native zlib compression 🔥

This commit is contained in:
Andrew Steinborn
2018-08-01 22:22:09 -04:00
parent 22dd4bbb99
commit fb4e6fd8f1
22 changed files with 610 additions and 3 deletions

View 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);
}
}