iPhone的TAR编码/解码库(理想可可) [英] TAR encode/decode library for iPhone (ideally cocoa)

查看:202
本文介绍了iPhone的TAR编码/解码库(理想可可)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道任何库/代码,将使我能够编码和解码.tar格式的数据 - 我可以在我的iPhone项目(最好可可)使用

Does anyone know of any library/code that will enable me to encode and decode .tar formatted data - that I can use in my iPhone project (preferably cocoa)

提前感谢

Craig

更新:我已经看过建议的图书馆因为我自己开发编解码器 - 它只有一个512字节的ASCII头部 - 它有多难: - )

UPDATE: I've taken a look at the suggested libraries and come to the conclusion that they are making waaaay to much of the problem - so I'm developing the codec myself - it's only a 512byte ASCII header after all - how hard can it be :-)

推荐答案

我找到的最好的库是 libarchive

The best library I've found is libarchive. It is well-designed, well-documented, and fast.

我刚刚在GitHub上创建了一个存储库,它具有构建 libarchive libbz2 作为iOS 4.2+的静态库。 (应该也可以使用它来定位3.x。)

I just created a repository on GitHub that has the tools to build libarchive and libbz2 as static libraries for iOS 4.2+. (It should be possible to use it to target 3.x, too.)

http://github.com/davepeck/iOS-libarchive/

其他人已经指出, libarchive 包含在SDK中。这不是真的。包括二进制 libarchive.2.dylib ,但头文件不是。这同样适用于 libbz2 (但是,奇怪,不是 libz 。)这意味着 libarchive 被视为私有API - 换句话说,如果您打算在App Store上发货,则不能使用它。因此我的知识库。

Others have pointed out that libarchive is included in the SDK. This is not quite true. The binary libarchive.2.dylib is included, but the headers are not. The same applies to libbz2 (but, oddly, not to libz.) This means that libarchive is considered a private API -- in other words, you can't use it if you intend to ship on the App Store. Hence my repository.

这篇关于iPhone的TAR编码/解码库(理想可可)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆