我有一些用DEFLATE算法压缩的数据,我相信这基本上只是在说压缩数据.我正在编写一个swift应用程序,我想弄清楚解压缩算法是否有本机纯swift(2.0)实现.
I have some data that has been compressed with the DEFLATE algorithm which I believe is basically just saying its zipped up. I'm writing a swift app and I was interested in figuring out if there is a native pure swift (2.0) implementation of the unzip algorithm.
我需要在一个快速的动态框架中实现它,因此,如果我不必使用Objective-c代码,那将是更可取的,因为这需要我创建一个我的swift框架等包含的objc框架.
I need to implement this in a swift dynamic framework, and as such it would be preferable if i didn't have to use Objective-c code as that requires me to make an objc framework included by my swift framework etc.
我想我的问题是是否存在本机swift实现或是否有使用swift调用zlib进行本机解压缩的方法?
I guess my question is either is there a native swift implementation or is there a way to use swift to call into zlib to do the unzipping natively?
谢谢
推荐答案在github上有一个zlib的本机Swift实现,称为 DeflateSwift
There is a native swift implementation of zlib on github called DeflateSwift
更多推荐
DEFLATE(unzip)算法的本机Swift实现
发布评论