DataCompression icon indicating copy to clipboard operation
DataCompression copied to clipboard

Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)

Results 11 DataCompression issues
Sort by recently updated
recently updated
newest added

I have been using this library until now but it will no longer run under Swift 5.7 because .withMemoryRebound has been updated. https://github.com/apple/swift-evolution/blob/main/proposals/0333-with-memory-rebound.md It would be great to get an...

Always compressed level 5 is too rigid

I have problems using gunzip with Swift 5, Xcode 11.3.1 It doesn’t return the inflated content, instead I ‘ve got back the same deflated input data. Executed under test environment...

I just added DataCompression to a Swift 5 based SwiftPM tool [this one](https://github.com/JamitLabs/Accio) but I am now getting errors stating: ```bash 'compression_stream_init' is only available on OS X 10.11 or...

Is there a way to check if a given set of data is compressed in any way? like data.isGzipped -> true or data.compression -> Compression.gzip || Compression.zip ,.... If not...

Adds variables that can be used to identify data format as zip or gzip.

Been using this happily for years. Updated phone to iOS 16 and XCode to 14 today and now I'm getting fatalErrors in `func unzip(skipCheckSumValidation: Bool = true) -> Data?` Somewhere...

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...

I would like to know about the possibility of creating password protected zip files? what needs be done in terms of implementing this as an additional feature? Thank you

Can you show a code example of unzipping a .gz folder and storing the folder on an ios device in order to access the files stored in the archive? That...