mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
how to use brotli::BrotliCompressor, the correct/intended way? #108
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
@eustas commented on GitHub (May 17, 2016):
Current interface will be deprecated soon.
We will be grateful if you leave some comments on the future interface:
@nitram509 commented on GitHub (May 29, 2016):
Hi Eugene,
thank you for this outlook.
These are my thoughts/feedback:
@nitram509 commented on GitHub (May 29, 2016):
About the comments, what do you think about switching to
Doxygen?
As a benefit for users, you could then automatically generate docs and e.g. upload them to
https://readthedocs.org/.
What do you think?
@eustas commented on GitHub (Aug 22, 2016):
I have plans to use Doxygen generator, but not sure when it will be integrated to TravisCI automation...
@nitram509 commented on GitHub (Aug 22, 2016):
In the current v0.5.2 release, there is still a confusing declaration between
@eustas would you please give me a hint, when to use what?
@eustas commented on GitHub (Jun 9, 2017):
Doxygenized API can be found here: https://brotli.org/