diff --git a/src/main/java/com/github/luben/zstd/Zstd.java b/src/main/java/com/github/luben/zstd/Zstd.java index 58280109..285c3a89 100644 --- a/src/main/java/com/github/luben/zstd/Zstd.java +++ b/src/main/java/com/github/luben/zstd/Zstd.java @@ -421,6 +421,9 @@ public static long trainFromBufferDirect(ByteBuffer samples, int[] sampleSizes, public static native int frameHeaderSizeMin(); public static native int frameHeaderSizeMax(); public static native int blockSizeMax(); + /* Min/max compression levels */ + public static native int minCompressionLevel(); + public static native int maxCompressionLevel(); /* Convenience methods */ diff --git a/src/main/native/jni_zstd.c b/src/main/native/jni_zstd.c index 5d6da8ab..873e967d 100644 --- a/src/main/native/jni_zstd.c +++ b/src/main/native/jni_zstd.c @@ -417,3 +417,13 @@ JNIEXPORT jint JNICALL Java_com_github_luben_zstd_Zstd_blockSizeMax (JNIEnv *env, jclass obj) { return ZSTD_BLOCKSIZE_MAX; } + +JNIEXPORT jint JNICALL Java_com_github_luben_zstd_Zstd_minCompressionLevel + (JNIEnv *env, jclass obj) { + return ZSTD_minCLevel(); +} + +JNIEXPORT jint JNICALL Java_com_github_luben_zstd_Zstd_maxCompressionLevel + (JNIEnv *env, jclass obj) { + return ZSTD_maxCLevel(); +} diff --git a/version b/version index e4a2d911..65130490 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.3.7-1 +1.3.7-2