kusano fc6ab3
This directory contains examples of the use of zlib and other relevant
kusano fc6ab3
programs and documentation.
kusano fc6ab3
kusano fc6ab3
enough.c
kusano fc6ab3
    calculation and justification of ENOUGH parameter in inftrees.h
kusano fc6ab3
    - calculates the maximum table space used in inflate tree
kusano fc6ab3
      construction over all possible Huffman codes
kusano fc6ab3
kusano fc6ab3
fitblk.c
kusano fc6ab3
    compress just enough input to nearly fill a requested output size
kusano fc6ab3
    - zlib isn't designed to do this, but fitblk does it anyway
kusano fc6ab3
kusano fc6ab3
gun.c
kusano fc6ab3
    uncompress a gzip file
kusano fc6ab3
    - illustrates the use of inflateBack() for high speed file-to-file
kusano fc6ab3
      decompression using call-back functions
kusano fc6ab3
    - is approximately twice as fast as gzip -d
kusano fc6ab3
    - also provides Unix uncompress functionality, again twice as fast
kusano fc6ab3
kusano fc6ab3
gzappend.c
kusano fc6ab3
    append to a gzip file
kusano fc6ab3
    - illustrates the use of the Z_BLOCK flush parameter for inflate()
kusano fc6ab3
    - illustrates the use of deflatePrime() to start at any bit
kusano fc6ab3
kusano fc6ab3
gzjoin.c
kusano fc6ab3
    join gzip files without recalculating the crc or recompressing
kusano fc6ab3
    - illustrates the use of the Z_BLOCK flush parameter for inflate()
kusano fc6ab3
    - illustrates the use of crc32_combine()
kusano fc6ab3
kusano fc6ab3
gzlog.c
kusano fc6ab3
gzlog.h
kusano fc6ab3
    efficiently and robustly maintain a message log file in gzip format
kusano fc6ab3
    - illustrates use of raw deflate, Z_PARTIAL_FLUSH, deflatePrime(),
kusano fc6ab3
      and deflateSetDictionary()
kusano fc6ab3
    - illustrates use of a gzip header extra field
kusano fc6ab3
kusano fc6ab3
zlib_how.html
kusano fc6ab3
    painfully comprehensive description of zpipe.c (see below)
kusano fc6ab3
    - describes in excruciating detail the use of deflate() and inflate()
kusano fc6ab3
kusano fc6ab3
zpipe.c
kusano fc6ab3
    reads and writes zlib streams from stdin to stdout
kusano fc6ab3
    - illustrates the proper use of deflate() and inflate()
kusano fc6ab3
    - deeply commented in zlib_how.html (see above)
kusano fc6ab3
kusano fc6ab3
zran.c
kusano fc6ab3
    index a zlib or gzip stream and randomly access it
kusano fc6ab3
    - illustrates the use of Z_BLOCK, inflatePrime(), and
kusano fc6ab3
      inflateSetDictionary() to provide random access