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