Lines Matching full:chunk
68 <tt>CHUNK</tt> is simply the buffer size for feeding data to and pulling data
73 #define CHUNK 16384
101 unsigned char in[CHUNK];
102 unsigned char out[CHUNK];
160 indicate that this is the last chunk of input data to compress. We need to use <tt>feof()</tt>
161 to check for end-of-file as opposed to seeing if fewer than <tt>CHUNK</tt> bytes have been read. The
162 reason is that if the input file length is an exact multiple of <tt>CHUNK</tt>, we will miss
175 strm.avail_in = fread(in, 1, CHUNK, source);
183 The inner <tt>do</tt>-loop passes our chunk of input data to <tt>deflate()</tt>, and then
195 strm.avail_out = CHUNK;
255 have = CHUNK - strm.avail_out;
272 at all, and <tt>avail_out</tt> remains unchanged as <tt>CHUNK</tt>. That <tt>deflate()</tt> call
296 from the last <tt>deflate()</tt> call, since we ran it until the last chunk of input was
334 unsigned char in[CHUNK];
335 unsigned char out[CHUNK];
379 strm.avail_in = fread(in, 1, CHUNK, source);
397 strm.avail_out = CHUNK;
434 have = CHUNK - strm.avail_out;
451 equal to <tt>Z_STREAM_END</tt> if the last chunk of the input file read contained the end