Skip to content

Implement streaming zip reader, tests, and benchmarks - #118

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_977770313
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_977770313

Conversation

@copybara-service

Copy link
Copy Markdown

Implement streaming zip reader, tests, and benchmarks

Implements sequential streaming reading from buffers and files without seeking
via Crubit C++ bindings to zip-rs:

  • Adds BufferedZipStreamReader, FsZipStreamReader, and ZipStreamReader.
  • Adds helper functions ReadZipFileFromStream and ReadZipFileFromStreamWithCompressedSize.
  • Exposes chunked ReadBytes and full GetFileData for ZipFile when reading from stream.
  • Adds comprehensive unit tests covering EOF semantics, streaming read, and precondition checks.
  • Adds streaming read benchmarks in zip_benchmark.cc.

@google-cla

google-cla Bot commented Sep 10, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service
copybara-service Bot force-pushed the test_977770313 branch 11 times, most recently from 06ae050 to c9d5de5 Compare September 16, 2026 11:04
Implements sequential streaming reading from buffers and files without seeking
via Crubit C++ bindings to zip-rs:
- Adds BufferedZipStreamReader, FsZipStreamReader, and ZipStreamReader.
- Adds helper functions ReadZipFileFromStream and ReadZipFileFromStreamWithCompressedSize.
- Exposes chunked ReadBytes and full GetFileData for ZipFile when reading from stream.
- Adds comprehensive unit tests covering EOF semantics, streaming read, and precondition checks.
- Adds streaming read benchmarks in zip_benchmark.cc.

PiperOrigin-RevId: 977770313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants