mw99 / DataCompression

Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)
Apache License 2.0
287 stars 57 forks source link

Single file zip decompresion #36

Open alecazam opened 8 months ago

alecazam commented 8 months ago

Apple convert single files to .zip when running "Compress this file", and would be good to be able to unzip the file. .unzip() isn't for this case. For example, Perfetto only has gzip support. I have C++ code to handle this, but was just missing this omission in this otherwise amazing library.

I ended up renaming .zip()/.unzip() -> .zlib()/unzlib() in my local copy.