gpt4 book ai didi

c++ - 7-Zip : Any good tutorials?

转载 作者:IT老高 更新时间:2023-10-28 22:22:19 30 4
gpt4 key购买 nike

我正在考虑使用 7-Zip 格式来打包我的应用程序文件,因为它是一种非常紧凑且流行的格式。不过,我找不到一些关于如何使用 C++ SDK 的教程。我想要一些教程,教我如何:

  • 从内存(缓冲区)而不是直接从磁盘打开存档。
  • 将存档中的单个文件提取到缓冲区,而不是磁盘。
  • 检查是否可以在存档中找到某个文件。

最佳答案

来自 LMZA SDK 文档:

ANSI-C LZMA Decoder

~~~~~~~~~~~~~~~~~~~

Please note that interfaces for ANSI-C code were changed in LZMA SDK 4.58. If you want to use old interfaces you can download previous version of LZMA SDK from sourceforge.net site.

To use ANSI-C LZMA Decoder you need the following files: 1) LzmaDec.h + LzmaDec.c + Types.h

LzmaUtil/LzmaUtil.c is example application that uses these files.

示例应用程序应该包含您需要的一切,否则 7-zip 的实际源代码将包含您需要的一切。还有一个用于 7-zip 的 C++ 包装器 here这应该会简化很多所需的操作。

关于c++ - 7-Zip : Any good tutorials?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6226443/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com