mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #297] [MERGED] Relax the prerequisites of WriteBrotliData(). #895
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?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/297
Author: @szabadka
Created: 1/12/2016
Status: ✅ Merged
Merged: 1/12/2016
Merged by: @szabadka
Base:
master← Head:master📝 Commits (1)
82c9e19Relax the prerequisites of WriteBrotliData().📊 Changes
2 files changed (+15 additions, -3 deletions)
View changed files
📝
enc/encode.cc(+14 -2)📝
enc/encode.h(+1 -1)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.