MCPcopy Create free account
hub / github.com/MariaDB/server / _tr_init

Function _tr_init

zlib/trees.c:456–478  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

454 * Initialize the tree data structures for a new zlib stream.
455 */
456void ZLIB_INTERNAL _tr_init(deflate_state *s) {
457 tr_static_init();
458
459 s->l_desc.dyn_tree = s->dyn_ltree;
460 s->l_desc.stat_desc = &static_l_desc;
461
462 s->d_desc.dyn_tree = s->dyn_dtree;
463 s->d_desc.stat_desc = &static_d_desc;
464
465 s->bl_desc.dyn_tree = s->bl_tree;
466 s->bl_desc.stat_desc = &static_bl_desc;
467
468 s->bi_buf = 0;
469 s->bi_valid = 0;
470 s->bi_used = 0;
471#ifdef ZLIB_DEBUG
472 s->compressed_len = 0L;
473 s->bits_sent = 0L;
474#endif
475
476 /* Initialize the first block of the first file: */
477 init_block(s);
478}
479
480#define SMALLEST 1
481/* Index within the heap array of least frequent node in the Huffman tree */

Callers 1

deflate.cFile · 0.85

Calls 2

tr_static_initFunction · 0.85
init_blockFunction · 0.70

Tested by

no test coverage detected