C++ cross-platform zlib simplifer-wrapper

后端 未结 8 503
陌清茗
陌清茗 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:14

    firstobject's easy zlib stays cross-platform; it has zlib in a single file easyzlib.c and exposes only ezcompress and ezuncompress functions with the added feature of determining the memory requirement before allocating the exact size.

    0 讨论(0)
  • 2020-12-17 21:22

    You could try to grab the code from another FOSS project. ScummVM, for example, has a highly portable Zlib wrapper (implementation, header) with all the functions you need, plus an OO layer for interfacing generically with any other kind of archive.

    Maybe that's a good starting point? The wrapper functions are totally standalone and portable (heck, they even work on a Nintendo DS), but the OO layer depends on many custom classes which may be hard to add to your own project.

    0 讨论(0)
提交回复
热议问题