diff options
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 59b35337..bbc4cb59 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 |
