Lines Matching refs:puff
2 * puff.c
4 * For conditions of distribution and use, see copyright notice in puff.h
7 * puff.c is a simple inflate written to be an unambiguous way to specify the
11 * data, zlib's inflate() is about four times as fast as puff(). zlib's
12 * inflate compiles to around 20K on my machine, whereas puff.c compiles to
14 * function here is used, then puff() is only twice as slow as zlib's
19 * assumes that long's are at least 32 bits. puff.c uses the short data type,
36 * - Update puff() dest and source pointers on negative
52 * 1.3 20 Mar 2002 - Go back to lengths for puff() parameters [Jean-loup]
53 * - Add a puff.h file for the interface
54 * - Add braces in puff() for else do [Jean-loup]
67 * - Add option in TEST code for puff to write the data
75 #include "puff.h" /* prototype for puff() */
249 * as readable, but it makes puff() twice as fast. And it only makes the code
728 * On success, the return value of puff() is zero. If there is an error in the
737 * puff() also has a mode to determine the size of the uncompressed output with
769 int puff(unsigned char *dest, /* pointer to destination pointer */
815 /* Examples of how to use puff().
817 Usage: puff [-w] [-nnn] file
818 ... | puff [-w] [-nnn]
929 ret = puff(NIL, &destlen, source + skip, &sourcelen);
931 fprintf(stderr, "puff() failed with return code %d\n", ret);
933 fprintf(stderr, "puff() succeeded uncompressing %lu bytes\n", destlen);
946 puff(dest, &destlen, source + skip, &sourcelen);