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