You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zstd is a very good compression algorithm. In recent years, it has been used by more and more open source projects. Recently, the zstd compression algorithm has been added to the zip compression specification. The magic number is 20. Now, I suggest that minizip start to add support for zstd .
I use minizip as the implementation of baulk's zip decompression function, and currently implements a zstd support that has not been sufficiently tested for reference:
The zip specification has been updated and the magic number 20 has been deprecated
0 - The file is stored (no compression)
1 - The file is Shrunk
2 - The file is Reduced with compression factor 1
3 - The file is Reduced with compression factor 2
4 - The file is Reduced with compression factor 3
5 - The file is Reduced with compression factor 4
6 - The file is Imploded
7 - Reserved for Tokenizing compression algorithm
8 - The file is Deflated
9 - Enhanced Deflating using Deflate64(tm)
10 - PKWARE Data Compression Library Imploding (old IBM TERSE)
11 - Reserved by PKWARE
12 - File is compressed using BZIP2 algorithm
13 - Reserved by PKWARE
14 - LZMA
15 - Reserved by PKWARE
16 - IBM z/OS CMPSC Compression
17 - Reserved by PKWARE
18 - File is compressed using IBM TERSE (new)
19 - IBM LZ77 z Architecture
20 - deprecated (use method 93 for zstd)
93 - Zstandard (zstd) Compression
94 - MP3 Compression
95 - XZ Compression
96 - JPEG variant
97 - WavPack compressed data
98 - PPMd version I, Rev 1
99 - AE-x encryption marker (see APPENDIX E)
Activity
gvollant commentedon Jun 14, 2020
see curl/curl#5453 : I approve it
nmoinvaz commentedon Jun 14, 2020
@fcharlie do you want to make a PR also put a comment at the top for credit?
fcharlie commentedon Jun 15, 2020
@nmoinvaz Thank you for your approval, but I have been a little busy lately. When I am free, I will go and see how to better support zstd in minizip.
nmoinvaz commentedon Jun 15, 2020
Ok, if you don't have time I can incorporate it for you. In the comment in the file do you want me to credit you as "Force Charlie"?
fcharlie commentedon Jun 15, 2020
@nmoinvaz You can call me "Force Charlie". Thank you
Added support for ZSTD. #498
Added support for ZSTD. #498
fcharlie commentedon Jun 20, 2020
@nmoinvaz
The zip specification has been updated and the magic number 20 has been deprecated
gvollant commentedon Jun 20, 2020
see #500 about zstd