c++ - 我如何在阅读时 "unzip"gzip 流

标签 c++ stream gzip

我的程序使用 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/

相关文章:

stream - akka 流 ActorSubscriber 不适用于远程 Actor

c++ - 如何使用 Crypto++ 解析 ZIP 文件?

c# - GZIP解压C# OutOfMemory

c++ - c char string 和 stdint.h uint8_t 在嵌入式系统中的兼容性

c++ - cvSetImageROI 检测眼睛

flutter - 当在Stream上使用Distinct()时似乎无法过滤出相同的结果

Scala 流 : how to avoid to keeping a reference to the head (and other elements)

c++ - 如果满足条件或发生错误

c++ - #define 和创建普通类型有什么区别?

html - 如何在 HTML 文件中设置内容编码