README.examples revision 1.1
11.1SchristosThis directory contains examples of the use of zlib. 21.1Schristos 31.1Schristosfitblk.c 41.1Schristos compress just enough input to nearly fill a requested output size 51.1Schristos - zlib isn't designed to do this, but fitblk does it anyway 61.1Schristos 71.1Schristosgun.c 81.1Schristos uncompress a gzip file 91.1Schristos - illustrates the use of inflateBack() for high speed file-to-file 101.1Schristos decompression using call-back functions 111.1Schristos - is approximately twice as fast as gzip -d 121.1Schristos - also provides Unix uncompress functionality, again twice as fast 131.1Schristos 141.1Schristosgzappend.c 151.1Schristos append to a gzip file 161.1Schristos - illustrates the use of the Z_BLOCK flush parameter for inflate() 171.1Schristos - illustrates the use of deflatePrime() to start at any bit 181.1Schristos 191.1Schristosgzjoin.c 201.1Schristos join gzip files without recalculating the crc or recompressing 211.1Schristos - illustrates the use of the Z_BLOCK flush parameter for inflate() 221.1Schristos - illustrates the use of crc32_combine() 231.1Schristos 241.1Schristosgzlog.c 251.1Schristosgzlog.h 261.1Schristos efficiently maintain a message log file in gzip format 271.1Schristos - illustrates use of raw deflate and Z_SYNC_FLUSH 281.1Schristos - illustrates use of gzip header extra field 291.1Schristos 301.1Schristoszlib_how.html 311.1Schristos painfully comprehensive description of zpipe.c (see below) 321.1Schristos - describes in excruciating detail the use of deflate() and inflate() 331.1Schristos 341.1Schristoszpipe.c 351.1Schristos reads and writes zlib streams from stdin to stdout 361.1Schristos - illustrates the proper use of deflate() and inflate() 371.1Schristos - deeply commented in zlib_how.html (see above) 381.1Schristos 391.1Schristoszran.c 401.1Schristos index a zlib or gzip stream and randomly access it 411.1Schristos - illustrates the use of Z_BLOCK, inflatePrime(), and 421.1Schristos inflateSetDictionary() to provide random access 43