Lines Matching refs:len

49  * - Make op and len in inflate_fast() unsigned for consistency
102 unsigned len));
433 # define UPDATE(check, buf, len) \
434 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
436 # define UPDATE(check, buf, len) adler32(check, buf, len)
620 unsigned len; /* length to copy for repeats, bits to drop */
672 len = BITS(4) + 8;
674 state->wbits = len;
675 else if (len > state->wbits) {
680 state->dmax = 1U << len;
740 len = state->head->extra_len - state->length;
741 zmemcpy(state->head->extra + len, next,
742 len + copy > state->head->extra_max ?
743 state->head->extra_max - len : copy);
760 len = (unsigned)(next[copy++]);
764 state->head->name[state->length++] = len;
765 } while (len && copy < have);
770 if (len) goto inf_leave;
781 len = (unsigned)(next[copy++]);
785 state->head->comment[state->length++] = len;
786 } while (len && copy < have);
791 if (len) goto inf_leave;
956 len = state->lens[state->have - 1];
963 len = 0;
970 len = 0;
980 state->lens[state->have++] = (unsigned short)len;
1344 Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
1350 yet and the return value is len. In the latter case, syncsearch() can be
1354 local unsigned syncsearch(have, buf, len)
1357 unsigned len;
1364 while (next < len && got < 4) {
1380 unsigned len; /* number of bytes to look at or looked at */
1395 len = 0;
1397 buf[len++] = (unsigned char)(state->hold);
1402 syncsearch(&(state->have), buf, len);
1406 len = syncsearch(&(state->have), strm->next_in, strm->avail_in);
1407 strm->avail_in -= len;
1408 strm->next_in += len;
1409 strm->total_in += len;