luben / zstd-jni

JNI binding for Zstd
Other
809 stars 165 forks source link

Support setting advanced compression parameters #268

Closed cgbur closed 1 year ago

cgbur commented 1 year ago

This PR exposes more configuration options from the Zstd advanced compression api. The new methods allow users to configure the following options:

These new methods have been added to the Zstd, ZstdCompressCtx, ZstdOutputStream, and ZstdOutputStreamNoFinalizer classes. Corresponding native functions have also been implemented in jni_zstd.c.

A new test has been integrated into the ZstdSpec file to ensure compatibility with the binary Zstd and to verify the expected behavior.

luben commented 1 year ago

LGTM, thanks for the contrinution