README.examples 1.8 KB

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