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