Lines Matching refs:len

56  * - Make op and len in inflate_fast() unsigned for consistency
108 unsigned len));
384 # define UPDATE(check, buf, len) \
385 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
387 # define UPDATE(check, buf, len) adler32(check, buf, len)
576 unsigned len; /* length to copy for repeats, bits to drop */
628 len = BITS(4) + 8;
629 if (len > state->wbits) {
634 state->dmax = 1U << len;
698 len = state->head->extra_len - state->length;
699 zmemcpy(state->head->extra + len, next,
700 len + copy > state->head->extra_max ?
701 state->head->extra_max - len : copy);
719 len = (unsigned)(next[copy++]);
723 state->head->name[state->length++] = len;
724 } while (len && copy < have);
729 if (len) goto inf_leave;
741 len = (unsigned)(next[copy++]);
745 state->head->comment[state->length++] = len;
746 } while (len && copy < have);
751 if (len) goto inf_leave;
917 len = state->lens[state->have - 1];
924 len = 0;
931 len = 0;
941 state->lens[state->have++] = (unsigned short)len;
1256 Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
1262 yet and the return value is len. In the latter case, syncsearch() can be
1266 local unsigned syncsearch(have, buf, len)
1269 unsigned len;
1276 while (next < len && got < 4) {
1292 unsigned len; /* number of bytes to look at or looked at */
1307 len = 0;
1309 buf[len++] = (unsigned char)(state->hold);
1314 (void) syncsearch(&(state->have), buf, len);
1318 len = syncsearch(&(state->have), strm->next_in, strm->avail_in);
1319 strm->avail_in -= len;
1320 strm->next_in += len;
1321 strm->total_in += len;