Home | History | Annotate | Download | only in examples

Lines Matching refs:CHUNK

75 #define CHUNK 32768         /* must be a power of two and fit in unsigned */
83 unsigned char *buf; /* allocated buffer of length CHUNK */
107 in->buf = malloc(CHUNK);
131 len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left);
135 } while (len != 0 && in->left < CHUNK);
174 /* seek past multiples of CHUNK bytes */
175 if (skip > CHUNK) {
178 left = skip & (CHUNK - 1);
299 junk = malloc(CHUNK);
327 strm.avail_out = CHUNK;
338 len += CHUNK - strm.avail_out;