Home | History | Annotate | Download | only in puff

Lines Matching full:puff

0 Puff -- A Simple Inflate
8 puff.c provides the routine puff() to decompress the deflate data format. It
14 puff.c was written to document the deflate format unambiguously, by virtue of
18 puff.c is heavily commented with details of the deflate format, especially
22 puff.c may also be useful in applications where code size or memory usage is a
27 Well, most likely you should just be reading puff.c and using zlib for actual
30 Include puff.h in your code, which provides this prototype:
32 int puff(unsigned char *dest, /* pointer to destination pointer */
37 Then you can call puff() to decompress a deflate stream that is in memory in
39 decompressed data at dest. puff() is the only external symbol in puff.c The
40 only C library functions that puff.c needs are setjmp() and longjmp(), which
41 are used to simplify error checking in the code to improve readabilty. puff.c
49 If needed, puff() can determine the size of the uncompressed data with no
53 then two passes of puff() can be used--first to determine the size, and second
58 in *sourcelen bytes, puff() will return an error without reading at or past
63 in puff.c for the possible return codes for puff().