Zlib (http://zlib.net/) provides a simple and efficient in-memory data compression and decompression series of API functions, many applications will use this library, among them, compress and uncompress functions are the most basic and commonly used.
Int uncompress (bytef * DEST, ulogfn * destlen, const bytef * Source, ulong sourcelen );
Function Description: uncompress
Extract the buffer content
Buffer zone. Sourcelen
Zlib is a common compression library that provides a set of In-memory compression and decompression functions, and can detect the integrity of extracted data (integrity ).
1. How to obtain zlib
The home page of zlib is: http://www.zlib.net/
2. Use VC ++ 6.0 to open
DownloadSource codeDecompress and open. The vc6.0 project has been created. In \ projects \ visualc6. double-click zlib. DSW, you can see in VC ++ 6.0
Official Handbook:Http://www.zlib.net/manual.htmlReference connection:http://blog.csdn.net/zhoudaxia/article/details/8039519http://www.oschina.net/code/snippet_65636_22542http://blog.163.com/bh_binghu/blog/static/94553512011626102054571/Please
The zlib Library is a well-known compression engine, andzlib is also the compression engine used by the famous gzip (GNU Zip) .How do I install the zlib library?First, install zlib, download the latest source program from its official website,
In the C directoryAlgorithmFile, go to the util \ lzmalib directory, compile and generate the Lib library, and export the following two functions. lzmacompress is the compression function, and lzmauncompress is the decompression
Decompressing a gzip stream with zlib
Decompressing a gzip stream with zlibContents
This C ++ program reads a file named input.txt.gz into memory, then uses the zlib library to
Most file system functions use Gzip to compress files, and this module can help transparently read gzip compressed files.
Zlib Support in PHP is not enabled by default. Use--with-zlib[=dir when you need to install the PHP configuration).
Many of the methods found on the network will lose characters when extracting the string, here is the workaround:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.