[英]Swift inflated [UInt8] fails to deflate with miniz lib
I have an iOS app where I use DeflateSwift to deflate a byte array ( [UInt8]
). 我有一个iOS应用程序,使用DeflateSwift压缩字节数组(
[UInt8]
)。 When I try to inflate this data using the miniz library it is not working. 当我尝试使用miniz库向这些数据充气时,它无法正常工作。 This is executed in another platform.
这是在另一个平台上执行的。 The DeflateSwift is a very simple wrapper around the zlib library which have been around for ages.
DeflateSwift是围绕zlib库的非常简单的包装,这种库已经存在了很长时间。
I have tried to set different value on windowsBits
as well as compressionLevel
when doing the inflate in the app. 在应用中进行充气时,我尝试在
windowsBits
和compressionLevel
上设置不同的值。 This has not solved the problem. 这还没有解决问题。 The miniz use
windowsBits = 15
by default which is the default setting for DeflateSwift as well. 最小默认情况下使用
windowsBits = 15
,这也是DeflateSwift的默认设置。
According to the documentation miniz should be 100% compatible with zlib, which does not seems to be the case. 根据文档, miniz应该与zlib 100%兼容,但事实并非如此。
Has anybody else encountered similar problems? 还有其他人遇到过类似的问题吗? Are there any more settings than
windowsBits
& compressionLevel
that I could fiddle with? 除了
windowsBits
和compressionLevel
,还有什么我可以摆弄的设置吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.