luben / zstd-jni

JNI binding for Zstd
Other
809 stars 165 forks source link

ZstdCompressCtx: add method to get frame progression #241

Closed rdicroce closed 1 year ago

rdicroce commented 1 year ago

When performing compression in a streaming fashion, the position of the input buffer does not accurately indicate how much input has actually been compressed, because zstd has its own internal buffers.

The getFrameProgression() function allows the user to get accurate numbers.

luben commented 1 year ago

LGTM! Thanks for contributing.

I think upstream is close to releasing v1.5.4 so I will wait for a bit before releasing new version to Maven.