summaryrefslogtreecommitdiffhomepage
path: root/examples/README.examples
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-09-29 21:52:57 +0200
committerAki <please@ignore.pl>2021-09-29 21:52:57 +0200
commit07162fa301835387e4da4278326ec1ff45d1dc3e (patch)
treef356f7c59f4741ad77d52f1cd5619a916df3b912 /examples/README.examples
downloadstarshatter-07162fa301835387e4da4278326ec1ff45d1dc3e.zip
starshatter-07162fa301835387e4da4278326ec1ff45d1dc3e.tar.gz
starshatter-07162fa301835387e4da4278326ec1ff45d1dc3e.tar.bz2
Squashed 'zlib/' content from commit cacf7f1
git-subtree-dir: zlib git-subtree-split: cacf7f1d4e3d44d871b605da3b647f07d718623f
Diffstat (limited to 'examples/README.examples')
-rw-r--r--examples/README.examples49
1 files changed, 49 insertions, 0 deletions
diff --git a/examples/README.examples b/examples/README.examples
new file mode 100644
index 0000000..56a3171
--- /dev/null
+++ b/examples/README.examples
@@ -0,0 +1,49 @@
+This directory contains examples of the use of zlib and other relevant
+programs and documentation.
+
+enough.c
+ calculation and justification of ENOUGH parameter in inftrees.h
+ - calculates the maximum table space used in inflate tree
+ construction over all possible Huffman codes
+
+fitblk.c
+ compress just enough input to nearly fill a requested output size
+ - zlib isn't designed to do this, but fitblk does it anyway
+
+gun.c
+ uncompress a gzip file
+ - illustrates the use of inflateBack() for high speed file-to-file
+ decompression using call-back functions
+ - is approximately twice as fast as gzip -d
+ - also provides Unix uncompress functionality, again twice as fast
+
+gzappend.c
+ append to a gzip file
+ - illustrates the use of the Z_BLOCK flush parameter for inflate()
+ - illustrates the use of deflatePrime() to start at any bit
+
+gzjoin.c
+ join gzip files without recalculating the crc or recompressing
+ - illustrates the use of the Z_BLOCK flush parameter for inflate()
+ - illustrates the use of crc32_combine()
+
+gzlog.c
+gzlog.h
+ efficiently and robustly maintain a message log file in gzip format
+ - illustrates use of raw deflate, Z_PARTIAL_FLUSH, deflatePrime(),
+ and deflateSetDictionary()
+ - illustrates use of a gzip header extra field
+
+zlib_how.html
+ painfully comprehensive description of zpipe.c (see below)
+ - describes in excruciating detail the use of deflate() and inflate()
+
+zpipe.c
+ reads and writes zlib streams from stdin to stdout
+ - illustrates the proper use of deflate() and inflate()
+ - deeply commented in zlib_how.html (see above)
+
+zran.c
+ index a zlib or gzip stream and randomly access it
+ - illustrates the use of Z_BLOCK, inflatePrime(), and
+ inflateSetDictionary() to provide random access