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

Function init_block

zlib/trees.c:440–451  ·  view source on GitHub ↗

=========================================================================== * Initialize a new block. */

Source from the content-addressed store, hash-verified

438 * Initialize a new block.
439 */
440local void init_block(deflate_state *s) {
441 int n; /* iterates over tree elements */
442
443 /* Initialize the trees. */
444 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
445 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
446 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
447
448 s->dyn_ltree[END_BLOCK].Freq = 1;
449 s->opt_len = s->static_len = 0L;
450 s->sym_next = s->matches = 0;
451}
452
453/* ===========================================================================
454 * Initialize the tree data structures for a new zlib stream.

Callers 2

_tr_initFunction · 0.70
trees.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected