Relax the prerequisites of WriteBrotliData().

Instead of returning false, if it is called with no
new input for a non-last block, just check if it has
any already processed data to flush, and if not,
return true with empty output.
2 files changed
tree: f426c6e5224520d2286003909e467727dfeb2c59
  1. appveyor/
  2. dec/
  3. docs/
  4. enc/
  5. python/
  6. tests/
  7. tools/
  8. .gitignore
  9. .gitmodules
  10. .travis.yml
  11. appveyor.yml
  12. CONTRIBUTING.md
  13. LICENSE
  14. README.md
  15. setup.py
  16. shared.mk
README.md

brotli

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in the following internet draft: http://www.ietf.org/id/draft-alakuijala-brotli

Brotli is open-sourced under the MIT License, see the LICENSE file.

Brotli mailing list: https://groups.google.com/forum/#!forum/brotli