ezstd
ezstd copied to clipboard
Zstd binding for Erlang
This adds bindings for `ZSTD_compressStream2` and `ZSTD_decompressStream` to ezstd. It takes care of repeating calls to those functions until they've processed all of the input as much as possible. The...
Sometimes the input can be too large to fit in memory or to read at once, so it would be useful to have API for deflating/inflating data chunk by chunk.
`ZSTD_compress` has [fast compression modes with negative compression levels](https://github.com/facebook/zstd/blob/v1.5.2/doc/zstd_manual.html#L44-L46), but nif only supports unsigned values.