diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
commit | 4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch) | |
tree | 4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /contrib/puff/README | |
parent | 086e982175da84b3db958191031380794315f95f (diff) | |
download | zlib-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/README | 10 |
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 -- | |||
14 | puff.c was written to document the deflate format unambiguously, by virtue of | 14 | puff.c was written to document the deflate format unambiguously, by virtue of |
15 | being working C code. It is meant to supplement RFC 1951, which formally | 15 | being working C code. It is meant to supplement RFC 1951, which formally |
16 | describes the deflate format. I have received many questions on details of the | 16 | describes the deflate format. I have received many questions on details of the |
17 | deflate format, and I hope that reading this code will answer those questions. | 17 | deflate format, and I hope that reading this code will answer those questions. |
18 | puff.c is heavily commented with details of the deflate format, especially | 18 | puff.c is heavily commented with details of the deflate format, especially |
19 | those little nooks and cranies of the format that might not be obvious from a | 19 | those little nooks and cranies of the format that might not be obvious from a |
20 | specification. | 20 | specification. |
@@ -29,10 +29,10 @@ applications, but if you must ... | |||
29 | 29 | ||
30 | Include puff.h in your code, which provides this prototype: | 30 | Include puff.h in your code, which provides this prototype: |
31 | 31 | ||
32 | int puff(unsigned char *dest, /* pointer to destination pointer */ | 32 | int 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 | ||
37 | Then you can call puff() to decompress a deflate stream that is in memory in | 37 | Then you can call puff() to decompress a deflate stream that is in memory in |
38 | its entirety at source, to a sufficiently sized block of memory for the | 38 | its entirety at source, to a sufficiently sized block of memory for the |