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