Commit 2ce1681
committed
feat: Implement ZIP64 support in pzip for large file handling
- Added constants for ZIP64 thresholds and version requirements.
- Enhanced ZipFileHeader with isZip64() method to determine ZIP64 status.
- Updated writeLocalFileHeader and writeDataDescriptor methods to handle ZIP64 sizes.
- Modified writeCentralDirectory and writeEndOfCentralDirectory to accommodate ZIP64 records and offsets.
- Introduced ZIP64 extra fields for central directory entries and end of central directory records.
Log: Improve ZIP file handling for large files with ZIP64 support1 parent 5881b51 commit 2ce1681
3 files changed
Lines changed: 241 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments