BLZip
A simple C++ wrapper for zlib + minizip
Install / Use
/learn @BleuLlama/BLZipREADME
BLZip/BLUnZip
A simple C++ wrapper for zlib + minizip
This isn't meant to provide comprehensive support for zip files, but something simple to, for example, extract content from a zip file for game data, to be directly loaded in to a RAM buffer or std::string.
It should also support password protected zip content as well.
There is preliminary support for Zip/compressing files too, although it is untested.
--
To configure this, you need to have also downloaded zlib: http://zlib.net/
This was tested with zlib version 1.2.8.
You need to chage the path in the two makefiles under ZLIB_DIR to point to the uncompressed zlib source archive.
You first need to build the libMinizip.a file:
- cd contrib
- make
Next, you can build your source project. Include BLUnZip.cpp/h in your project and include zlib and minizip lib with your build (-lz -lMinizip) Use the main makefile as an example of how to do this.
From the minizip project, the only files we're re-using are ioapi.c, unzip.c and zip.c Feel free to just include those (and the .h files obviously) in your project instead of building the minMinizip.a if you'd like. That should work fine.
Note that on windows, you may need some additional files, including iowin32.c and crypt.h
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
