Skip to content

zstd: Flush vs Close #984

Closed Answered by klauspost
fhkong asked this question in Q&A
Jul 26, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Flush does not indicate EOF, but it will allow the reader to read up until where the Flush was used. Therefore a stream ending with a flush is not complete.

Unless you have very special requirements you do not need to call Flush. You will know when you need it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fhkong
Comment options

Answer selected by klauspost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #983 on July 26, 2024 12:24.