Lines Matching refs:d
44 void tinf_skip_bytes(TINF_DATA *d, int num);
45 uint16_t tinf_get_uint16(TINF_DATA *d);
47 void tinf_skip_bytes(TINF_DATA *d, int num) in tinf_skip_bytes() argument
49 while (num--) uzlib_get_byte(d); in tinf_skip_bytes()
52 uint16_t tinf_get_uint16(TINF_DATA *d) in tinf_get_uint16() argument
54 unsigned int v = uzlib_get_byte(d); in tinf_get_uint16()
55 v = (uzlib_get_byte(d) << 8) | v; in tinf_get_uint16()
59 int uzlib_gzip_parse_header(TINF_DATA *d) in uzlib_gzip_parse_header() argument
66 if (uzlib_get_byte(d) != 0x1f || uzlib_get_byte(d) != 0x8b) return TINF_DATA_ERROR; in uzlib_gzip_parse_header()
69 if (uzlib_get_byte(d) != 8) return TINF_DATA_ERROR; in uzlib_gzip_parse_header()
72 flg = uzlib_get_byte(d); in uzlib_gzip_parse_header()
80 tinf_skip_bytes(d, 6); in uzlib_gzip_parse_header()
85 unsigned int xlen = tinf_get_uint16(d); in uzlib_gzip_parse_header()
86 tinf_skip_bytes(d, xlen); in uzlib_gzip_parse_header()
90 if (flg & FNAME) { while (uzlib_get_byte(d)); } in uzlib_gzip_parse_header()
93 if (flg & FCOMMENT) { while (uzlib_get_byte(d)); } in uzlib_gzip_parse_header()
98 /*unsigned int hcrc =*/ tinf_get_uint16(d); in uzlib_gzip_parse_header()
106 d->checksum_type = TINF_CHKSUM_CRC; in uzlib_gzip_parse_header()
107 d->checksum = ~0; in uzlib_gzip_parse_header()