开发者

Is there any cross-platform gzip processor library for C or C++? [closed]

开发者 https://www.devze.com 2023-03-13 21:19 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and c开发者_开发问答itations.

Closed 8 years ago.

Improve this question

I want some library (API) to open, seek, read, write ... (in one word to process) gzip files. Is there any open-source cross-platform ones for C or C++?


Yes. Zlib is the one.

There is also this related question on how to process gzip files more easily and conveniently in C++. The most notable and up to date suggestion seems to be the GZip filters in Boost.IOStreams, which I have good experience with myself.


Yes, sure, zlib is the basic library and it has additional bindings other languages as listed on the webpage as eg gzstream providing a C++ wrapper to the gz* functions.

zlib, being a C-language library, is also extremely portable and cross-platform. See the webpage for links to Solaris, SCO, BeOS, MaxOS, OS/2 (!!), Palm Pilot, Newton (!!), Windows CE (!!), Blackberry, Windows, .Net, ... versions.


If you're interested in the magic of Boost, check out Boost's stream filters which can be arbitrarily combined and cascaded; there's built-in support for gzip, DEFLATE (that's GZip minus the header) and bzip2. Very handy.

0

精彩评论

暂无评论...
验证码 换一张
取 消