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++?
我想要一些库(API)来打开、查找、读取、写入……(用一个词来处理)gzip文件。是否有针对C或c++的开源跨平台版本?
3 个解决方案
#1
10
Yes. Zlib is the one.
是的。Zlib是一个。
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.
还有一个有关如何在c++中更方便、方便地处理gzip文件的相关问题。最著名和最新的建议似乎是Boost中的GZip过滤器。我对自己有很好的经验。
#2
5
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是基本的库,它还有其他的绑定语言,如gzstream提供的gz*函数的c++包装。
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.
作为c语言库,zlib也是非常便携和跨平台的。浏览网页链接到Solaris, SCO, BeOS, MaxOS, OS/2 (!!), Palm Pilot, Newton (!!), Windows CE(!!),黑莓,Windows,。net,…版本。
#3
2
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.
如果您对Boost的魔力感兴趣,请查看Boost的流过滤器,它可以任意组合和级联;内置对gzip、DEFLATE(即gzip减去header)和bzip2的支持。非常方便。
#1
10
Yes. Zlib is the one.
是的。Zlib是一个。
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.
还有一个有关如何在c++中更方便、方便地处理gzip文件的相关问题。最著名和最新的建议似乎是Boost中的GZip过滤器。我对自己有很好的经验。
#2
5
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是基本的库,它还有其他的绑定语言,如gzstream提供的gz*函数的c++包装。
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.
作为c语言库,zlib也是非常便携和跨平台的。浏览网页链接到Solaris, SCO, BeOS, MaxOS, OS/2 (!!), Palm Pilot, Newton (!!), Windows CE(!!),黑莓,Windows,。net,…版本。
#3
2
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.
如果您对Boost的魔力感兴趣,请查看Boost的流过滤器,它可以任意组合和级联;内置对gzip、DEFLATE(即gzip减去header)和bzip2的支持。非常方便。