Streaming zstd: switch to ZSTD_compressStream2 / ZSTD_decompressStream #7

Merged
TapTap merged 1 commits from streaming-zstd into main 2026-07-16 12:31:49 +02:00
Owner

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).

  • Builds clean (no new warnings)
  • All 7 tests pass, including test_compression
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). - Builds clean (no new warnings) - All 7 tests pass, including test_compression
TapTap added 1 commit 2026-07-16 12:29:39 +02:00
Replaced one-shot ZSTD_compress / ZSTD_decompress with streaming
API (ZSTD_compressStream2 + ZSTD_decompressStream) in both
data_compress and data_decompress. Interface unchanged.

Prepares for true streaming transfer where compression can be
interleaved with transmission.
TapTap merged commit f778d1903c into main 2026-07-16 12:31:49 +02:00
Sign in to join this conversation.