Working on improvements to natives. Not done yet.

This commit is contained in:
Andrew Steinborn
2020-09-11 01:46:59 -04:00
parent 7650eedb7a
commit a49a77a7ef
8 changed files with 28 additions and 32 deletions

View File

@@ -7,7 +7,7 @@
JNIEXPORT jlong JNICALL
Java_com_velocitypowered_natives_compression_NativeZlibInflate_init(JNIEnv *env,
jobject obj)
jclass clazz)
{
struct libdeflate_decompressor *decompress = libdeflate_alloc_decompressor();
if (decompress == NULL) {
@@ -21,7 +21,7 @@ Java_com_velocitypowered_natives_compression_NativeZlibInflate_init(JNIEnv *env,
JNIEXPORT void JNICALL
Java_com_velocitypowered_natives_compression_NativeZlibInflate_free(JNIEnv *env,
jobject obj,
jclass clazz,
jlong ctx)
{
libdeflate_free_decompressor((struct libdeflate_decompressor *) ctx);
@@ -29,7 +29,7 @@ Java_com_velocitypowered_natives_compression_NativeZlibInflate_free(JNIEnv *env,
JNIEXPORT jboolean JNICALL
Java_com_velocitypowered_natives_compression_NativeZlibInflate_process(JNIEnv *env,
jobject obj,
jclass clazz,
jlong ctx,
jlong sourceAddress,
jint sourceLength,