| 1244 | |
| 1245 | |
| 1246 | void inflate_blocks_reset(inflate_blocks_statef *s, z_streamp z, uLong *c) |
| 1247 | { |
| 1248 | if (c != Z_NULL) |
| 1249 | *c = s->check; |
| 1250 | if (s->mode == IBM_BTREE || s->mode == IBM_DTREE) |
| 1251 | ZFREE(z, s->sub.trees.blens); |
| 1252 | if (s->mode == IBM_CODES) |
| 1253 | inflate_codes_free(s->sub.decode.codes, z); |
| 1254 | s->mode = IBM_TYPE; |
| 1255 | s->bitk = 0; |
| 1256 | s->bitb = 0; |
| 1257 | s->read = s->write = s->window; |
| 1258 | if (s->checkfn != Z_NULL) |
| 1259 | z->adler = s->check = (*s->checkfn)(0L, (const Byte *)Z_NULL, 0); |
| 1260 | LuTracev((stderr, "inflate: blocks reset\n")); |
| 1261 | } |
| 1262 | |
| 1263 | |
| 1264 | inflate_blocks_statef *inflate_blocks_new(z_streamp z, check_func c, uInt w) |
no test coverage detected