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

Function StaticTreeDesc

static/word2md/mammoth.browser.js:22501–22511  ·  view source on GitHub ↗
(static_tree, extra_bits, extra_base, elems, max_length)

Source from the content-addressed store, hash-verified

22499
22500
22501function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {
22502
22503 this.static_tree = static_tree; /* static tree or NULL */
22504 this.extra_bits = extra_bits; /* extra bits for each code or NULL */
22505 this.extra_base = extra_base; /* base index for extra_bits */
22506 this.elems = elems; /* max number of elements in the tree */
22507 this.max_length = max_length; /* max bit length for the codes */
22508
22509 // show if `static_tree` has data or dummy - needed for monomorphic objects
22510 this.has_stree = static_tree && static_tree.length;
22511}
22512
22513
22514var static_l_desc;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected