Chris@4: This directory contains examples of the use of zlib and other relevant Chris@4: programs and documentation. Chris@4: Chris@4: enough.c Chris@4: calculation and justification of ENOUGH parameter in inftrees.h Chris@4: - calculates the maximum table space used in inflate tree Chris@4: construction over all possible Huffman codes Chris@4: Chris@4: fitblk.c Chris@4: compress just enough input to nearly fill a requested output size Chris@4: - zlib isn't designed to do this, but fitblk does it anyway Chris@4: Chris@4: gun.c Chris@4: uncompress a gzip file Chris@4: - illustrates the use of inflateBack() for high speed file-to-file Chris@4: decompression using call-back functions Chris@4: - is approximately twice as fast as gzip -d Chris@4: - also provides Unix uncompress functionality, again twice as fast Chris@4: Chris@4: gzappend.c Chris@4: append to a gzip file Chris@4: - illustrates the use of the Z_BLOCK flush parameter for inflate() Chris@4: - illustrates the use of deflatePrime() to start at any bit Chris@4: Chris@4: gzjoin.c Chris@4: join gzip files without recalculating the crc or recompressing Chris@4: - illustrates the use of the Z_BLOCK flush parameter for inflate() Chris@4: - illustrates the use of crc32_combine() Chris@4: Chris@4: gzlog.c Chris@4: gzlog.h Chris@4: efficiently and robustly maintain a message log file in gzip format Chris@4: - illustrates use of raw deflate, Z_PARTIAL_FLUSH, deflatePrime(), Chris@4: and deflateSetDictionary() Chris@4: - illustrates use of a gzip header extra field Chris@4: Chris@4: zlib_how.html Chris@4: painfully comprehensive description of zpipe.c (see below) Chris@4: - describes in excruciating detail the use of deflate() and inflate() Chris@4: Chris@4: zpipe.c Chris@4: reads and writes zlib streams from stdin to stdout Chris@4: - illustrates the proper use of deflate() and inflate() Chris@4: - deeply commented in zlib_how.html (see above) Chris@4: Chris@4: zran.c Chris@4: index a zlib or gzip stream and randomly access it Chris@4: - illustrates the use of Z_BLOCK, inflatePrime(), and Chris@4: inflateSetDictionary() to provide random access