[PR #83] [MERGED] Encoder implementation using input/output classes. #685

Closed
opened 2026-01-29 20:50:21 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/83
Author: @szabadka
Created: 4/23/2015
Status: Merged
Merged: 4/23/2015
Merged by: @szabadka

Base: masterHead: master


📝 Commits (1)

  • 3dbe2e0 Encoder implementation using input/output classes.

📊 Changes

4 files changed (+338 additions, -150 deletions)

View changed files

📝 enc/context.h (+1 -1)
📝 enc/encode.cc (+295 -126)
📝 enc/encode.h (+35 -0)
📝 tools/bro.cc (+7 -23)

📄 Description

Add a BrotliCompress() method to the public encoder API
that uses the BrotliIn and BrotliOut classes and use
that in the 'bro' command-line tool.

Use the streaming api in BrotliCompressBuffer() and
BrotliCompressor::WriteMetaBlock().

Use the appropiate hashers for quality <= 9.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/83 **Author:** [@szabadka](https://github.com/szabadka) **Created:** 4/23/2015 **Status:** ✅ Merged **Merged:** 4/23/2015 **Merged by:** [@szabadka](https://github.com/szabadka) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`3dbe2e0`](https://github.com/google/brotli/commit/3dbe2e03e77b3a0de5cb9068fcdcb6f194b3f8ae) Encoder implementation using input/output classes. ### 📊 Changes **4 files changed** (+338 additions, -150 deletions) <details> <summary>View changed files</summary> 📝 `enc/context.h` (+1 -1) 📝 `enc/encode.cc` (+295 -126) 📝 `enc/encode.h` (+35 -0) 📝 `tools/bro.cc` (+7 -23) </details> ### 📄 Description Add a BrotliCompress() method to the public encoder API that uses the BrotliIn and BrotliOut classes and use that in the 'bro' command-line tool. Use the streaming api in BrotliCompressBuffer() and BrotliCompressor::WriteMetaBlock(). Use the appropiate hashers for quality <= 9. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 20:50:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#685