Home | History | Annotate | Download | only in examples

Lines Matching refs:NEXT

93     unsigned char *next;
96 next = me->inbuf;
97 *buf = next;
103 ret = (int)read(me->infile, next, ret);
108 next += ret;
154 /* next input byte macro for use inside lunpipe() and gunpipe() */
155 #define NEXT() (have ? 0 : (have = in(indp, &next)), \
156 last = have ? (have--, (int)(*next++)) : -1)
178 if (NEXT() == -1) \
187 next += chunk; \
193 of buffered input at next. strm is used for passing error information back
200 local int lunpipe(unsigned have, z_const unsigned char *next, struct ind *indp,
203 int last; /* last byte read by NEXT(), or -1 if EOF */
216 unsigned stack; /* next position for reversed string */
226 flags = NEXT();
248 don't create a table entry until the next code */
249 if (NEXT() == -1) /* no compressed data is ok */
252 if (NEXT() == -1) /* missing a bit */
279 if (NEXT() == -1) { /* EOF is end of compressed data */
291 if (NEXT() == -1) /* can't end in middle of code */
307 continue; /* get next code */
346 /* set previous code for next iteration */
365 /* loop for next code with final and prev as the last match, rem and
366 left provide the first 0..7 bits of the next code, end is the last
387 z_const unsigned char *next = NULL;
402 if (NEXT() == -1) {
406 if (last != 31 || (NEXT() != 139 && last != 157)) {
411 first = 0; /* next non-header is junk */
415 ret = lunpipe(have, next, indp, outfile, strm);
421 if (NEXT() != 8) { /* only deflate method allowed */
427 flags = NEXT(); /* header flags */
428 NEXT(); /* discard mod time, xflgs, os */
429 NEXT();
430 NEXT();
431 NEXT();
432 NEXT();
433 NEXT();
441 len = NEXT();
442 len += (unsigned)(NEXT()) << 8;
447 if (NEXT() == -1) break;
452 next += len;
455 while (NEXT() != 0 && last != -1)
458 while (NEXT() != 0 && last != -1)
461 NEXT();
462 NEXT();
473 strm->next_in = next;
477 next = strm->next_in;
483 if (NEXT() != (int)(outd.crc & 0xff) ||
484 NEXT() != (int)((outd.crc >> 8) & 0xff) ||
485 NEXT() != (int)((outd.crc >> 16) & 0xff) ||
486 NEXT() != (int)((outd.crc >> 24) & 0xff)) {
494 if (NEXT() != (int)(outd.total & 0xff) ||
495 NEXT() != (int)((outd.total >> 8) & 0xff) ||
496 NEXT() != (int)((outd.total >> 16) & 0xff) ||
497 NEXT() != (int)((outd.total >> 24) & 0xff)) {