Streaming zstd: switch to ZSTD_compressStream2 / ZSTD_decompressStream #7
Reference in New Issue
Block a user
Delete Branch "streaming-zstd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaced one-shot ZSTD_compress / ZSTD_decompress with the streaming API in both data_compress and data_decompress.
The public interface is unchanged — callers pass Data in/out the same way. The internal implementation now uses ZSTD_compressStream2 with ZSTD_e_end and loops until ret == 0, and ZSTD_decompressStream for decompression.
Prepares for true streaming where compression can be interleaved with transmission (future work).