Add SOZip (Seek-Optimized ZIP) support#1038
Draft
Copilot wants to merge 10 commits into
Draft
Conversation
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for seek optimized zip archives
Add SOZip (Seek-Optimized ZIP) support
Nov 26, 2025
Owner
|
@copilot make tests pass with reading using the ZIpReader and ZipArchive |
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Contributor
Author
Fixed the SOZip tests to work correctly with ZipReader and ZipArchive. The tests now:
|
Copilot stopped work on behalf of
adamhathcock due to an error
November 27, 2025 08:37
Owner
|
@copilot update from master, resolve conflicts and finish the work |
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Contributor
Author
…mized-zip-support # Conflicts: # Directory.Packages.props # FORMATS.md # build/packages.lock.json
Owner
|
@copilot remove foo.zip and create a different SOZip file that is used in a test |
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Contributor
Author
Removed foo.zip and created Zip.sozip.zip test archive with proper SOZip structure (data file with index file containing chunk offsets). Added two new tests:
The test archive contains:
All 19 SOZip tests passing in commit b3ce90a. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for SOZip (Seek-Optimized ZIP), a ZIP profile that enables random access within DEFLATE-compressed files by storing sync flush point offsets in hidden index files.
Changes Made
Core SOZip Implementation
SOZipIndexclass to read/write index files containing chunk offsets, sizes, and metadataSOZipExtraFieldclass to parse SOZip extra field (0x564B) linking entries to their index filesSOZipDeflateStreamfor Deflate compression that inserts sync flush points at chunk boundariesExtraDataTypeenumZipEntry Extensions
IsSozipproperty to detect entries with SOZip extra fieldIsSozipIndexFileproperty to identify hidden index files by name pattern (.filename.sozip.idx)Writer Options
EnableSOZip,SOZipChunkSize, andSOZipMinFileSizeconfiguration options onZipWriterOptionsEnableSOZipoverride onZipWriterEntryOptionsTest Archive and Tests
Zip.sozip.ziptest archive with proper SOZip structure (data file with index file containing chunk offsets)foo.ziptest archiveDocumentation
Testing
Notes
Reading and detection of SOZip archives is fully implemented. Writer configuration options are in place; full implementation of writing SOZip archives with sync flush compression is available for testing.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.