MCPcopy Create free account
hub / github.com/TruthHun/BookStack / _tr_init

Function _tr_init

static/word2md/mammoth.browser.js:23357–23374  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

23355 * Initialize the tree data structures for a new zlib stream.
23356 */
23357function _tr_init(s)
23358{
23359
23360 if (!static_init_done) {
23361 tr_static_init();
23362 static_init_done = true;
23363 }
23364
23365 s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);
23366 s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);
23367 s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);
23368
23369 s.bi_buf = 0;
23370 s.bi_valid = 0;
23371
23372 /* Initialize the first block of the first file: */
23373 init_block(s);
23374}
23375
23376
23377/* ===========================================================================

Callers

nothing calls this directly

Calls 2

tr_static_initFunction · 0.70
init_blockFunction · 0.70

Tested by

no test coverage detected