annotate src/zlib-1.2.8/examples/README.examples @ 128:5b4145a0d408

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