首页 开发技术 C     /    用zlib库在内存中解压或压缩http会话中的gzip内容,直接调用函数即可--源码

用zlib库在内存中解压或压缩http会话中的gzip内容,直接调用函数即可--源码

上传者: solo320 | 上传时间:2024/8/19 17:52:16 | 文件大小:133KB | 文件类型:zip
用zlib库在内存中解压或压缩http会话中的gzip内容,直接调用函数即可--源码
在http会话中,经常会遇到gzip压缩的内容。
这部分内容通常是乱码,需要解压缩才能看到正常的内容。
通常用zlib库只能对tar.gz文件进行解压缩。
本源码解决了在内存中直接对gzip内容进行解压缩,从而对我们感兴趣的内容进行修改。
压缩函数和解压缩函数放在gzip.c文件里,头文件是gzip.h,其他则为zlib库文件。
在应用中,直接调用gzip.c文件里的压缩函数和解压缩函数即可。
本人项目中用到的,自己编译的,实测通过。

文件下载

资源详情

[{"title":"(29个子文件133KB)用zlib库在内存中解压或压缩http会话中的gzip内容,直接调用函数即可--源码","children":[{"title":"zlib","children":[{"title":"infback.c <span style='color:#111;'>22.18KB</span>","children":null,"spread":false},{"title":"inflate.h <span style='color:#111;'>6.25KB</span>","children":null,"spread":false},{"title":"crc32.c <span style='color:#111;'>12.87KB</span>","children":null,"spread":false},{"title":"inffast.c <span style='color:#111;'>13.14KB</span>","children":null,"spread":false},{"title":"inffixed.h <span style='color:#111;'>6.18KB</span>","children":null,"spread":false},{"title":"trees.c <span style='color:#111;'>43.22KB</span>","children":null,"spread":false},{"title":"gzlib.c <span style='color:#111;'>16.03KB</span>","children":null,"spread":false},{"title":"uncompr.c <span style='color:#111;'>1.96KB</span>","children":null,"spread":false},{"title":"gzread.c <span style='color:#111;'>18.26KB</span>","children":null,"spread":false},{"title":"deflate.h <span style='color:#111;'>12.47KB</span>","children":null,"spread":false},{"title":"gzip.h <span style='color:#111;'>368B</span>","children":null,"spread":false},{"title":"gzwrite.c <span style='color:#111;'>15.82KB</span>","children":null,"spread":false},{"title":"inflate.c <span style='color:#111;'>52.26KB</span>","children":null,"spread":false},{"title":"inftrees.h <span style='color:#111;'>2.86KB</span>","children":null,"spread":false},{"title":"deflate.c <span style='color:#111;'>69.80KB</span>","children":null,"spread":false},{"title":"trees.h <span style='color:#111;'>8.27KB</span>","children":null,"spread":false},{"title":"zlib.h <span style='color:#111;'>85.82KB</span>","children":null,"spread":false},{"title":"crc32.h <span style='color:#111;'>29.85KB</span>","children":null,"spread":false},{"title":"gzip.c <span style='color:#111;'>2.30KB</span>","children":null,"spread":false},{"title":"zconf.h <span style='color:#111;'>15.14KB</span>","children":null,"spread":false},{"title":"gzguts.h <span style='color:#111;'>6.40KB</span>","children":null,"spread":false},{"title":"adler32.c <span style='color:#111;'>4.85KB</span>","children":null,"spread":false},{"title":"inftrees.c <span style='color:#111;'>12.72KB</span>","children":null,"spread":false},{"title":"zutil.h <span style='color:#111;'>6.61KB</span>","children":null,"spread":false},{"title":"gzclose.c <span style='color:#111;'>678B</span>","children":null,"spread":false},{"title":"inffast.h <span style='color:#111;'>427B</span>","children":null,"spread":false},{"title":"compress.c <span style='color:#111;'>2.47KB</span>","children":null,"spread":false},{"title":"zutil.c <span style='color:#111;'>7.24KB</span>","children":null,"spread":false}],"spread":false},{"title":"readme.txt <span style='color:#111;'>358B</span>","children":null,"spread":false}],"spread":true}]

评论信息

  • wdyichen3:
    挺好用的,感谢分享2017-04-14
  • qiuj2013:
    正是所需要的,已经使用,谢谢!!2016-11-04
  • ___stdcall:
    正是我需要的,可以用,谢谢2016-04-14
  • tdcodingman:
    可以使用.不错.2016-01-20
  • 哈哈王戈多:
    可以使用,可以完整解压,我做为参考,可以改进2015-12-03

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明