I have an iOS app where I use DeflateSwift to deflate a byte array ( [UInt8]
). When I try to inflate this data using the miniz library it is not working. This is executed in another platform. The DeflateSwift is a very simple wrapper around the zlib library which have been around for ages.
I have tried to set different value on windowsBits
as well as compressionLevel
when doing the inflate in the app. This has not solved the problem. The miniz use windowsBits = 15
by default which is the default setting for DeflateSwift as well.
According to the documentation miniz should be 100% compatible with zlib, which does not seems to be the case.
Has anybody else encountered similar problems? Are there any more settings than windowsBits
& compressionLevel
that I could fiddle with?
As it turns out I did not get the DeflateSwift classes to work with the miniz library. However the NSData+Compression
found in CocoaGit works for this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.