MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / inflate_blocks_reset

Function inflate_blocks_reset

src/Setup/unzip.cpp:1246–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1244
1245
1246void 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
1264inflate_blocks_statef *inflate_blocks_new(z_streamp z, check_func c, uInt w)

Callers 4

inflate_blocks_newFunction · 0.85
unzip.cppFile · 0.85
inflateResetFunction · 0.85
inflateFunction · 0.85

Calls 1

inflate_codes_freeFunction · 0.85

Tested by

no test coverage detected