Lines Matching defs:len

49  * - Make op and len in inflate_fast() unsigned for consistency
431 # define UPDATE_CHECK(check, buf, len) \
432 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
434 # define UPDATE_CHECK(check, buf, len) adler32(check, buf, len)
615 unsigned len; /* length to copy for repeats, bits to drop */
676 len = BITS(4) + 8;
679 state->wbits = len;
681 if (len > 15 || len > state->wbits) {
686 state->dmax = 1U << len;
774 (len = state->head->extra_len - state->length) <
776 zmemcpy(state->head->extra + len, next,
777 len + copy > state->head->extra_max ?
778 state->head->extra_max - len : copy);
801 len = (unsigned)(next[copy++]);
805 state->head->name[state->length++] = (Bytef)len;
806 } while (len && copy < have);
813 if (len)
833 len = (unsigned)(next[copy++]);
838 state->head->comment[state->length++] = (Bytef)len;
840 } while (len && copy < have);
847 if (len)
1031 len = state->lens[state->have - 1];
1038 len = 0;
1045 len = 0;
1055 state->lens[state->have++] = (unsigned short)len;
1486 Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
1492 yet and the return value is len. In the latter case, syncsearch() can be
1497 unsigned len) {
1503 while (next < len && got < 4) {
1523 unsigned len; /* number of bytes to look at or looked at */
1545 len = 0;
1547 buf[len++] = (unsigned char)(state->hold);
1552 syncsearch(&(state->have), buf, len);
1556 len = syncsearch(&(state->have), strm->next_in, strm->avail_in);
1557 strm->avail_in -= len;
1558 strm->next_in += len;
1559 strm->total_in += len;