我的程序使用 HTTP 通过网络读取 gzipped 文件。
我需要我的程序能够解压缩内容并解析它,即使不是所有的 gzip 文件都到达了。
可以吗?
如果是这样,可以用 C++ 完成吗?如果是,怎么办?
最佳答案
你或许可以试试 gzstream图书馆:
Gzstream is a small C++ library, basically just a wrapper, that provides the functionality of the zlib C-library in a C++ iostream. It is freely available under the LGPL license.
关于c++ - 我如何在阅读时 "unzip"gzip 流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2490776/