Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-compression: ostream-zlib - Require o_stream_finish() to write th…
…e trailer It's now possible to call o_stream_flush() without the trailer getting written. It's also now required to call o_stream_finish() to write the trailer before closing the ostream. This guarantees that the caller checks that the trailer was successfully written. This isn't needed if the ostream already failed before writing the trailer.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters