Lines Matching +refs:val +refs:len

49  * - Make op and len in inflate_fast() unsigned for consistency
102 unsigned len));
346 state.lencode[low].bits, state.lencode[low].val);
357 state.distcode[low].val);
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;
943 if (here.val < 16) {
945 state->lens[state->have++] = here.val;
948 if (here.val == 16) {
956 len = state->lens[state->have - 1];
960 else if (here.val == 17) {
963 len = 0;
970 len = 0;
980 state->lens[state->have++] = (unsigned short)len;
1039 here = state->lencode[last.val +
1049 state->length = (unsigned)here.val;
1051 Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
1053 "inflate: literal 0x%02x\n", here.val));
1089 here = state->distcode[last.val +
1104 state->offset = (unsigned)here.val;
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;