虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 压缩解压 > We often get questions about how the deflate() and inflate() functions should be used. Users wonder

We often get questions about how the deflate() and inflate() functions should be used. Users wonder

  • 资源大小:595 K
  • 上传时间: 2014-01-02
  • 上传用户:ll122644144
  • 资源积分:2 下载积分
  • 标      签: functions questions deflate inflate

资 源 简 介

We often get questions about how the deflate() and inflate() functions should be used. Users wonder when they should provide more input, when they should use more output, what to do with a Z_BUF_ERROR, how to make sure the process terminates properly, and so on. So for those who have read zlib.h (a few times), and would like further edification, below is an annotated example in C of simple routines to compress and decompress from an input file to an output file using deflate() and inflate() respectively. The annotations are interspersed between lines of the code. So please read between the lines. We hope this helps explain some of the intricacies of zlib.

相 关 资 源

您 可 能 感 兴 趣 的