README.examples 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. gznorm.c
  31. normalize a gzip file by combining members into a single member
  32. - demonstrates how to concatenate deflate streams using Z_BLOCK
  33. zlib_how.html
  34. painfully comprehensive description of zpipe.c (see below)
  35. - describes in excruciating detail the use of deflate() and inflate()
  36. zpipe.c
  37. reads and writes zlib streams from stdin to stdout
  38. - illustrates the proper use of deflate() and inflate()
  39. - deeply commented in zlib_how.html (see above)
  40. zran.c
  41. zran.h
  42. index a zlib or gzip stream and randomly access it
  43. - illustrates the use of Z_BLOCK, inflatePrime(), and
  44. inflateSetDictionary() to provide random access