Lines Matching refs:CHUNK
74 #define CHUNK 32768 /* must be a power of two and fit in unsigned */
82 unsigned char *buf; /* allocated buffer of length CHUNK */
106 in->buf = malloc(CHUNK);
130 len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left);
134 } while (len != 0 && in->left < CHUNK);
173 /* seek past multiples of CHUNK bytes */
174 if (skip > CHUNK) {
177 left = skip & (CHUNK - 1);
298 junk = malloc(CHUNK);
326 strm.avail_out = CHUNK;
337 len += CHUNK - strm.avail_out;