C++ cross-platform zlib simplifer-wrapper

后端 未结 8 501
陌清茗
陌清茗 2020-12-17 20:26

I\'m looking for a wrapper that distills zlib to:

  1. OpenZipFile()
  2. GetItemInfo(n)
  3. UnzipItem(n) // Bonus points for unzipping recursively if ite
8条回答
  •  离开以前
    2020-12-17 21:01

    In the zlib source archive, there is a contribution named "minizip".

    "minizip" is a set of files you can use to play with .zip files. Basic services you need are already there :

    • unzOpen
    • unzLocateFile
    • unzOpenCurrentFile
    • unzGetCurrentFileInfo
    • unzCloseCurrentFile
    • unzClose

    Of course, this is not object oriented (and I'm sure that was not the goal of the creator of minizip), but writing a simple object oriented wrapper should be easy.

提交回复
热议问题