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.
标签: functions questions deflate inflate
上传时间: 2014-01-02
上传用户:zhuyibin
Zlib函数列表 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.
标签: functions questions deflate inflate
上传时间: 2014-01-03
上传用户:lhc9102
this process is about how to get the shortest path, this process write by VC++.
标签: process this shortest about
上传时间: 2014-01-07
上传用户:上善若水
how to extend an OLE DB consumer template class and make it much easier to use in applications. I had also explained how you can utilize the power of C++ exception-handling feature to make your work easier, especially in error handling. It was just a small class in my last article.
标签: applications consumer template extend
上传时间: 2014-11-26
上传用户:royzhangsz
This example will show how you can determine if the specified thread is the last thread in the process or not.
标签: thread the determine specified
上传时间: 2015-10-12
上传用户:凤临西北
Cpp how to program source code
上传时间: 2014-01-07
上传用户:bakdesec
some java example for learn how to use the Calendar
标签: Calendar example learn some
上传时间: 2015-10-13
上传用户:xinyuzhiqiwuwu
some java example for learn how to using database in java
标签: java database example learn
上传时间: 2015-10-13
上传用户:xmsmh
C# for programming, learn how to .
标签: programming learn for how
上传时间: 2015-10-14
上传用户:lizhizheng88
An article about how to Save Old Versions of Records Using MSSQL Server 2005 Xml Column
标签: Versions article Records Column
上传时间: 2014-01-02
上传用户:aeiouetla