mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
how to use brotli::BrotliCompressor, the correct/intended way? #105
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @nitram509 on GitHub (May 16, 2016).
Abstract
I appreciate that the brotli library offers a class for stream based compression.
In order to use this class as intended, I have some questions, which the sparse header file didn't answer.
I consider myself as a novice C-Programmer and I'm just following the concept of
don't make me think - applied to API design ;-)
General usage
Just from looking at the public method's signatures, I have some expectations.
I would use the BrotliCompression class like this (pseudo-code).
I wouldn't expect doing anything more, to write a valid brotli stream, which I can send over wire or save to disk.
Questions
Is_Last vs. Do_Flush vs. FinishStream()
I know, when it comes to file IO, what flush() means. But with these three options I'm confused.
Questions
I'm looking forward to a fruitful discussion :-)
Thanks in advance
Martin