7-Zip: Any good tutorials? [closed]

…衆ロ難τιáo~ 提交于 2019-12-04 17:25:38

问题


I'm thinking about using the 7-Zip format to pack my application files since it's a very compact and popular format. I can't find some tutorials on how to use the C++ SDK, though. I'd like some tutorials that teach me how to:

  • Open an archive from memory (buffer) instead of directly from disk.
  • Extract individual files inside the archive, to buffer, not to disk.
  • Check if a certain file can be found in the archive.

回答1:


From the LMZA SDK documentation:

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.

The example app should have everything you need, else the actual source for 7-zip will have what you need. There is also a C++ wrapper for 7-zip here which should simplify a lot of the needed ops.



来源:https://stackoverflow.com/questions/6226443/7-zip-any-good-tutorials

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!