Skip to content

Add ZipFile::ReadInto(span), ZipFile::Skip(n) and ZipArchive::TryClone(). - #190

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

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

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Add ZipFile::ReadInto(span), ZipFile::Skip(n) and ZipArchive::TryClone().

ReadInto decompresses into a caller-owned buffer and Skip discards bytes,
both without allocating. TryClone() returns an independent handle onto a
file-backed archive that shares the parsed central directory and owns its own
file descriptor; it verifies the file is still the one the archive was opened
from (length, plus device and inode on Unix) and fails with
FailedPrecondition otherwise.

@google-cla

google-cla Bot commented Oct 21, 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_1003764260 branch 3 times, most recently from 099a9e3 to 8e86e73 Compare October 28, 2026 09:47
@copybara-service
copybara-service Bot force-pushed the test_1003764260 branch 17 times, most recently from 7bf0209 to c85a7b3 Compare November 3, 2026 09:41
@copybara-service
copybara-service Bot force-pushed the test_1003764260 branch 2 times, most recently from c9b3ad1 to 17b624b Compare November 12, 2026 03:10
…yClone()`.

`ReadInto` decompresses into a caller-owned buffer and `Skip` discards bytes,
both without allocating. `TryClone()` returns an independent handle onto a
file-backed archive that shares the parsed central directory and owns its own
file descriptor; it verifies the file is still the one the archive was opened
from (length, plus device and inode on Unix) and fails with
FailedPrecondition otherwise.

PiperOrigin-RevId: 1003764260
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