Home | History | Annotate | Line # | Download | only in examples
README.examples revision 1.1
      1  1.1  christos This directory contains examples of the use of zlib.
      2  1.1  christos 
      3  1.1  christos fitblk.c
      4  1.1  christos     compress just enough input to nearly fill a requested output size
      5  1.1  christos     - zlib isn't designed to do this, but fitblk does it anyway
      6  1.1  christos 
      7  1.1  christos gun.c
      8  1.1  christos     uncompress a gzip file
      9  1.1  christos     - illustrates the use of inflateBack() for high speed file-to-file
     10  1.1  christos       decompression using call-back functions
     11  1.1  christos     - is approximately twice as fast as gzip -d
     12  1.1  christos     - also provides Unix uncompress functionality, again twice as fast
     13  1.1  christos 
     14  1.1  christos gzappend.c
     15  1.1  christos     append to a gzip file
     16  1.1  christos     - illustrates the use of the Z_BLOCK flush parameter for inflate()
     17  1.1  christos     - illustrates the use of deflatePrime() to start at any bit
     18  1.1  christos 
     19  1.1  christos gzjoin.c
     20  1.1  christos     join gzip files without recalculating the crc or recompressing
     21  1.1  christos     - illustrates the use of the Z_BLOCK flush parameter for inflate()
     22  1.1  christos     - illustrates the use of crc32_combine()
     23  1.1  christos 
     24  1.1  christos gzlog.c
     25  1.1  christos gzlog.h
     26  1.1  christos     efficiently maintain a message log file in gzip format
     27  1.1  christos     - illustrates use of raw deflate and Z_SYNC_FLUSH
     28  1.1  christos     - illustrates use of gzip header extra field
     29  1.1  christos 
     30  1.1  christos zlib_how.html
     31  1.1  christos     painfully comprehensive description of zpipe.c (see below)
     32  1.1  christos     - describes in excruciating detail the use of deflate() and inflate()
     33  1.1  christos 
     34  1.1  christos zpipe.c
     35  1.1  christos     reads and writes zlib streams from stdin to stdout
     36  1.1  christos     - illustrates the proper use of deflate() and inflate()
     37  1.1  christos     - deeply commented in zlib_how.html (see above)
     38  1.1  christos 
     39  1.1  christos zran.c
     40  1.1  christos     index a zlib or gzip stream and randomly access it
     41  1.1  christos     - illustrates the use of Z_BLOCK, inflatePrime(), and
     42  1.1  christos       inflateSetDictionary() to provide random access
     43