• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/zlib-1.2.3/examples/

Lines Matching defs:to

1 /* gzappend -- command to append to a gzip file
10 Permission is granted to anyone to use this software for any purpose,
11 including commercial applications, and to alter it and redistribute it
12 freely, subject to the following restrictions:
30 * - Add version and copyright to help
31 * - Send help to stdout instead of stderr
33 * - Add L to constants in lseek() calls
41 * (Why you ask? Because it was fun to write!)
45 gzappend takes a gzip file and appends to it, compressing files from the
46 command line or data from stdin. The gzip file is written to directly, to
50 This program was written to illustrate the use of the new Z_BLOCK option of
52 block boundary to facilitate locating and modifying the last block bit at
66 data is saved along with the number of unused bits to initialize deflate.
69 data from the gzip file to initialize the dictionary. If the total
70 uncompressed data was less than 32K, then all of it is used to initialize
72 last bits from the original deflate stream. From here on, the data to
73 append is simply compressed using deflate, and written to the gzip file.
98 modified to be fast when one argument much greater than the other, and
99 coded to avoid unnecessary swapping */
125 unsigned char *start, *last, *to, *from;
132 /* pointer to last entry in list */
155 tmp = *from; /* save entry to be overwritten */
157 to = from; /* next step in cycle */
161 *to = *from; /* shift left */
163 *to = tmp; /* complete the circle */
253 /* decompress gzip file "name", return strm with a deflate stream ready to
255 descriptor pointing to where to write the compressed data -- the deflate
256 stream is initialized to compress using level "level" */
278 /* prepare to decompress */
303 /* set up output to next available section of sliding window */
357 if (write(gz.fd, gz.buf, 1) != 1) bye("writing after seek to ", name);
384 /* append file "name" to gzip file gd using deflate stream strm -- if last
392 /* open file to compress and append */
406 /* compress input file and append to gzip file */
489 /* prepare to append to gzip file */