MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / _tr_init

Function _tr_init

extlibs/minizip/src/trees.c:380–404  ·  view source on GitHub ↗

=========================================================================== * Initialize the tree data structures for a new zlib stream. */

(s)

Source from the content-addressed store, hash-verified

378 * Initialize the tree data structures for a new zlib stream.
379 */
380void ZLIB_INTERNAL _tr_init(s)
381
382deflate_state* s;
383{
384 tr_static_init();
385
386 s->l_desc.dyn_tree = s->dyn_ltree;
387 s->l_desc.stat_desc = &static_l_desc;
388
389 s->d_desc.dyn_tree = s->dyn_dtree;
390 s->d_desc.stat_desc = &static_d_desc;
391
392 s->bl_desc.dyn_tree = s->bl_tree;
393 s->bl_desc.stat_desc = &static_bl_desc;
394
395 s->bi_buf = 0;
396 s->bi_valid = 0;
397#ifdef ZLIB_DEBUG
398 s->compressed_len = 0L;
399 s->bits_sent = 0L;
400#endif
401
402 /* Initialize the first block of the first file: */
403 init_block(s);
404}
405
406/* ===========================================================================
407 * Initialize a new block.

Callers 1

deflate.cFile · 0.85

Calls 2

tr_static_initFunction · 0.85
init_blockFunction · 0.85

Tested by

no test coverage detected