summaryrefslogtreecommitdiff
path: root/contrib/puff/README
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
commit4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch)
tree4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /contrib/puff/README
parent086e982175da84b3db958191031380794315f95f (diff)
downloadzlib-1.2.0.5.tar.gz
zlib-1.2.0.5.tar.bz2
zlib-1.2.0.5.zip
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to 'contrib/puff/README')
-rw-r--r--contrib/puff/README10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/puff/README b/contrib/puff/README
index 59b3533..bbc4cb5 100644
--- a/contrib/puff/README
+++ b/contrib/puff/README
@@ -14,7 +14,7 @@ Why I wrote this --
14puff.c was written to document the deflate format unambiguously, by virtue of 14puff.c was written to document the deflate format unambiguously, by virtue of
15being working C code. It is meant to supplement RFC 1951, which formally 15being working C code. It is meant to supplement RFC 1951, which formally
16describes the deflate format. I have received many questions on details of the 16describes the deflate format. I have received many questions on details of the
17deflate format, and I hope that reading this code will answer those questions. 17deflate format, and I hope that reading this code will answer those questions.
18puff.c is heavily commented with details of the deflate format, especially 18puff.c is heavily commented with details of the deflate format, especially
19those little nooks and cranies of the format that might not be obvious from a 19those little nooks and cranies of the format that might not be obvious from a
20specification. 20specification.
@@ -29,10 +29,10 @@ applications, but if you must ...
29 29
30Include puff.h in your code, which provides this prototype: 30Include puff.h in your code, which provides this prototype:
31 31
32int puff(unsigned char *dest, /* pointer to destination pointer */ 32int puff(unsigned char *dest, /* pointer to destination pointer */
33 unsigned long *destlen, /* amount of output space */ 33 unsigned long *destlen, /* amount of output space */
34 unsigned char *source, /* pointer to source data pointer */ 34 unsigned char *source, /* pointer to source data pointer */
35 unsigned long *sourcelen); /* amount of input available */ 35 unsigned long *sourcelen); /* amount of input available */
36 36
37Then you can call puff() to decompress a deflate stream that is in memory in 37Then you can call puff() to decompress a deflate stream that is in memory in
38its entirety at source, to a sufficiently sized block of memory for the 38its entirety at source, to a sufficiently sized block of memory for the