0

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?

Johan Karlsson
  • 1,136
  • 1
  • 14
  • 37

1 Answers1

0

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.

Johan Karlsson
  • 1,136
  • 1
  • 14
  • 37