C++ 用于就地修改 ZIP 文件的库
我正在寻找一种方法,可以在现有 ZIP 存档或任何其他存档格式中添加或删除文件,只要存在跨平台 API,而无需重写新的 zip 文件并添加新文件它,或者没有从中删除的项目。
对于 ZIP 文件,目录位于文件末尾,因此每次可能都需要重写 zip 文件的某些部分。 我只是想避免每次都重写整个事情。 我要处理的存档文件很大,速度很重要。
是否有任何 C++ 库可以满足我的需求?
I'm looking for a way to add or remove files to/from an existing ZIP archive, or any other archive format for that matter as long as there are cross platform APIs, without having to rewrite a new zip file with new files added to it, or sans items deleted from it.
With ZIP files, the catalog is placed at the end of the file so that, and some parts of the zip file will likely have to be rewritten each time. I'm just trying to avoid having to rewrite the whole thing every time. The archive files I'm looking at dealing with will be large, and speed is important.
Is there any C++ library out there that does what I'm looking for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Zipios++ 提供对 ZIP 存档内文件的直接访问。
Zipios++ provides direct access to files inside ZIP archives.
miniz 库允许您将文件附加到现有存档,而无需通过一个函数调用重写它:
miniz library allows you to append a file to an existing archive without rewriting it with one function call:
有多个 zip 库可用,其中两个领先的库是:
http://www.gzip.org/
http://www.info-zip.org/
-Adam
Several zip libraries are available, two of the leading libraries are:
http://www.gzip.org/
http://www.info-zip.org/
-Adam