Skip to content

Conversation

vickenty
Copy link

ZSTD_decompressStream may consume only part of the src buffer, for example if the input is a concatenation of two compressed streams. In this case the second stream will remain undecoded in the input buffer after the first call, and we need to call decompress routine again.

This makes NewReader behavior closer to Decompress, that handles such concatenated streams transparently.

ZSTD_decompressStream may consume only part of the src buffer, for
example if the input is a concatenation of two compressed streams. In
this case the second stream will remain undecoded in the input buffer
after the first call, and we need to call decompress routine again.

This makes NewReader behavior closer to Decompress, that handles such
concatenated streams transparently.
@vickenty vickenty marked this pull request as ready for review August 26, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant