README.examples revision 1.1.1.2
11.1.1.2SchristosThis directory contains examples of the use of zlib and other relevant
21.1.1.2Schristosprograms and documentation.
31.1.1.2Schristos
41.1.1.2Schristosenough.c
51.1.1.2Schristos    calculation and justification of ENOUGH parameter in inftrees.h
61.1.1.2Schristos    - calculates the maximum table space used in inflate tree
71.1.1.2Schristos      construction over all possible Huffman codes
81.1Schristos
91.1Schristosfitblk.c
101.1Schristos    compress just enough input to nearly fill a requested output size
111.1Schristos    - zlib isn't designed to do this, but fitblk does it anyway
121.1Schristos
131.1Schristosgun.c
141.1Schristos    uncompress a gzip file
151.1Schristos    - illustrates the use of inflateBack() for high speed file-to-file
161.1Schristos      decompression using call-back functions
171.1Schristos    - is approximately twice as fast as gzip -d
181.1Schristos    - also provides Unix uncompress functionality, again twice as fast
191.1Schristos
201.1Schristosgzappend.c
211.1Schristos    append to a gzip file
221.1Schristos    - illustrates the use of the Z_BLOCK flush parameter for inflate()
231.1Schristos    - illustrates the use of deflatePrime() to start at any bit
241.1Schristos
251.1Schristosgzjoin.c
261.1Schristos    join gzip files without recalculating the crc or recompressing
271.1Schristos    - illustrates the use of the Z_BLOCK flush parameter for inflate()
281.1Schristos    - illustrates the use of crc32_combine()
291.1Schristos
301.1Schristosgzlog.c
311.1Schristosgzlog.h
321.1.1.2Schristos    efficiently and robustly maintain a message log file in gzip format
331.1.1.2Schristos    - illustrates use of raw deflate, Z_PARTIAL_FLUSH, deflatePrime(),
341.1.1.2Schristos      and deflateSetDictionary()
351.1.1.2Schristos    - illustrates use of a gzip header extra field
361.1Schristos
371.1Schristoszlib_how.html
381.1Schristos    painfully comprehensive description of zpipe.c (see below)
391.1Schristos    - describes in excruciating detail the use of deflate() and inflate()
401.1Schristos
411.1Schristoszpipe.c
421.1Schristos    reads and writes zlib streams from stdin to stdout
431.1Schristos    - illustrates the proper use of deflate() and inflate()
441.1Schristos    - deeply commented in zlib_how.html (see above)
451.1Schristos
461.1Schristoszran.c
471.1Schristos    index a zlib or gzip stream and randomly access it
481.1Schristos    - illustrates the use of Z_BLOCK, inflatePrime(), and
491.1Schristos      inflateSetDictionary() to provide random access
50