DEFLATE(unzip)算法的本机Swift实现

编程入门 行业动态 更新时间:2024-10-28 02:22:13
本文介绍了DEFLATE(unzip)算法的本机Swift实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一些用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实现

本文发布于:2023-11-29 01:10:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1644687.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:本机   算法   DEFLATE   unzip   Swift

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!