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

Function lm_init

zlib/deflate.c:682–701  ·  view source on GitHub ↗

=========================================================================== * Initialize the "longest match" routines for a new zlib stream */

Source from the content-addressed store, hash-verified

680 * Initialize the "longest match" routines for a new zlib stream
681 */
682local void lm_init(deflate_state *s) {
683 s->window_size = (ulg)2L*s->w_size;
684
685 CLEAR_HASH(s);
686
687 /* Set the default configuration parameters:
688 */
689 s->max_lazy_match = configuration_table[s->level].max_lazy;
690 s->good_match = configuration_table[s->level].good_length;
691 s->nice_match = configuration_table[s->level].nice_length;
692 s->max_chain_length = configuration_table[s->level].max_chain;
693
694 s->strstart = 0;
695 s->block_start = 0L;
696 s->lookahead = 0;
697 s->insert = 0;
698 s->match_length = s->prev_length = MIN_MATCH-1;
699 s->match_available = 0;
700 s->ins_h = 0;
701}
702
703/* ========================================================================= */
704int ZEXPORT deflateReset(z_streamp strm) {

Callers 1

deflateResetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected