MCPcopy Create free account
hub / github.com/hoothin/UserScripts / _tr_init

Function _tr_init

Picviewer CE+/dist.user.js:11375–11392  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

11373 * Initialize the tree data structures for a new zlib stream.
11374 */
11375function _tr_init(s)
11376{
11377
11378 if (!static_init_done) {
11379 tr_static_init();
11380 static_init_done = true;
11381 }
11382
11383 s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);
11384 s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);
11385 s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);
11386
11387 s.bi_buf = 0;
11388 s.bi_valid = 0;
11389
11390 /* Initialize the first block of the first file: */
11391 init_block(s);
11392}
11393
11394
11395/* ===========================================================================

Callers

nothing calls this directly

Calls 2

tr_static_initFunction · 0.70
init_blockFunction · 0.70

Tested by

no test coverage detected