Lines Matching +refs:check +refs:flags
232 state->check = 1L; /* 1L is the result of adler32() zero length data */
462 # define UPDATE(check, buf, len) \ argument
463 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
465 # define UPDATE(check, buf, len) adler32(check, buf, len) argument
470 # define CRC2(check, word) \ argument
474 check = crc32(check, hbuf, 2); \
477 # define CRC4(check, word) \ argument
483 check = crc32(check, hbuf, 4); \
679 state->check = crc32(0L, Z_NULL, 0);
680 CRC2(state->check, hold);
685 state->flags = 0; /* expect zlib header */
713 strm->adler = state->check = adler32(0L, Z_NULL, 0);
720 state->flags = (int)(hold);
721 if ((state->flags & 0xff) != Z_DEFLATED) {
726 if (state->flags & 0xe000) {
733 if ((state->flags & 0x0200) && (state->wrap & 4))
734 CRC2(state->check, hold);
741 if ((state->flags & 0x0200) && (state->wrap & 4))
742 CRC4(state->check, hold);
751 if ((state->flags & 0x0200) && (state->wrap & 4))
752 CRC2(state->check, hold);
756 if (state->flags & 0x0400) {
761 if ((state->flags & 0x0200) && (state->wrap & 4))
762 CRC2(state->check, hold);
769 if (state->flags & 0x0400) {
780 if ((state->flags & 0x0200) && (state->wrap & 4))
781 state->check = crc32(state->check, next, copy);
791 if (state->flags & 0x0800) {
801 if ((state->flags & 0x0200) && (state->wrap & 4))
802 state->check = crc32(state->check, next, copy);
812 if (state->flags & 0x1000) {
822 if ((state->flags & 0x0200) && (state->wrap & 4))
823 state->check = crc32(state->check, next, copy);
832 if (state->flags & 0x0200) {
834 if ((state->wrap & 4) && hold != (state->check & 0xffff)) {
842 state->head->hcrc = (int)((state->flags >> 9) & 1);
845 strm->adler = state->check = crc32(0L, Z_NULL, 0);
851 strm->adler = state->check = ZSWAP32(hold);
859 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1216 strm->adler = state->check =
1217 UPDATE(state->check, put - out, out);
1221 state->flags ? hold :
1223 ZSWAP32(hold)) != state->check) {
1234 if (state->wrap && state->flags) {
1289 strm->adler = state->check =
1290 UPDATE(state->check, strm->next_out - out, out);
1355 if (dictid != state->check)
1548 int ZEXPORT inflateValidate(strm, check) in inflateValidate() argument
1550 int check;
1556 if (check)