Home | History | Annotate | Download | only in zlib

Lines Matching refs:LEN

51  * - Make op and len in inflate_fast() unsigned for consistency
420 # define UPDATE_CHECK(check, buf, len) \
421 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
423 # define UPDATE_CHECK(check, buf, len) adler32(check, buf, len)
604 unsigned len; /* length to copy for repeats, bits to drop */
664 len = BITS(4) + 8;
666 state->wbits = len;
667 if (len > 15 || len > state->wbits) {
672 state->dmax = 1U << len;
741 (len = state->head->extra_len - state->length) <
743 zmemcpy(state->head->extra + len, next,
744 len + copy > state->head->extra_max ?
745 state->head->extra_max - len : copy);
763 len = (unsigned)(next[copy++]);
767 state->head->name[state->length++] = (Bytef)len;
768 } while (len && copy < have);
773 if (len) goto inf_leave;
785 len = (unsigned)(next[copy++]);
789 state->head->comment[state->length++] = (Bytef)len;
790 } while (len && copy < have);
795 if (len) goto inf_leave;
968 len = state->lens[state->have - 1];
975 len = 0;
982 len = 0;
992 state->lens[state->have++] = (unsigned short)len;
1033 state->mode = LEN;
1035 case LEN:
1162 if (state->length == 0) state->mode = LEN;
1184 if (state->length == 0) state->mode = LEN;
1190 state->mode = LEN;
1354 Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
1360 yet and the return value is len. In the latter case, syncsearch() can be
1365 unsigned len) {
1371 while (next < len && got < 4) {
1385 unsigned len; /* number of bytes to look at or looked at */
1401 len = 0;
1403 buf[len++] = (unsigned char)(state->hold);
1408 syncsearch(&(state->have), buf, len);
1412 len = syncsearch(&(state->have), strm->next_in, strm->avail_in);
1413 strm->avail_in -= len;
1414 strm->next_in += len;
1415 strm->total_in += len;