annotate src/zlib-1.2.8/examples/README.examples @ 43:5ea0608b923f

Current zlib source
author Chris Cannam
date Tue, 18 Oct 2016 14:33:52 +0100
parents
children
rev   line source
Chris@43 1 This directory contains examples of the use of zlib and other relevant
Chris@43 2 programs and documentation.
Chris@43 3
Chris@43 4 enough.c
Chris@43 5 calculation and justification of ENOUGH parameter in inftrees.h
Chris@43 6 - calculates the maximum table space used in inflate tree
Chris@43 7 construction over all possible Huffman codes
Chris@43 8
Chris@43 9 fitblk.c
Chris@43 10 compress just enough input to nearly fill a requested output size
Chris@43 11 - zlib isn't designed to do this, but fitblk does it anyway
Chris@43 12
Chris@43 13 gun.c
Chris@43 14 uncompress a gzip file
Chris@43 15 - illustrates the use of inflateBack() for high speed file-to-file
Chris@43 16 decompression using call-back functions
Chris@43 17 - is approximately twice as fast as gzip -d
Chris@43 18 - also provides Unix uncompress functionality, again twice as fast
Chris@43 19
Chris@43 20 gzappend.c
Chris@43 21 append to a gzip file
Chris@43 22 - illustrates the use of the Z_BLOCK flush parameter for inflate()
Chris@43 23 - illustrates the use of deflatePrime() to start at any bit
Chris@43 24
Chris@43 25 gzjoin.c
Chris@43 26 join gzip files without recalculating the crc or recompressing
Chris@43 27 - illustrates the use of the Z_BLOCK flush parameter for inflate()
Chris@43 28 - illustrates the use of crc32_combine()
Chris@43 29
Chris@43 30 gzlog.c
Chris@43 31 gzlog.h
Chris@43 32 efficiently and robustly maintain a message log file in gzip format
Chris@43 33 - illustrates use of raw deflate, Z_PARTIAL_FLUSH, deflatePrime(),
Chris@43 34 and deflateSetDictionary()
Chris@43 35 - illustrates use of a gzip header extra field
Chris@43 36
Chris@43 37 zlib_how.html
Chris@43 38 painfully comprehensive description of zpipe.c (see below)
Chris@43 39 - describes in excruciating detail the use of deflate() and inflate()
Chris@43 40
Chris@43 41 zpipe.c
Chris@43 42 reads and writes zlib streams from stdin to stdout
Chris@43 43 - illustrates the proper use of deflate() and inflate()
Chris@43 44 - deeply commented in zlib_how.html (see above)
Chris@43 45
Chris@43 46 zran.c
Chris@43 47 index a zlib or gzip stream and randomly access it
Chris@43 48 - illustrates the use of Z_BLOCK, inflatePrime(), and
Chris@43 49 inflateSetDictionary() to provide random access