MCPcopy Create free account
hub / github.com/F-Stack/f-stack / deflateTune

Function deflateTune

freebsd/contrib/zlib/deflate.c:620–636  ·  view source on GitHub ↗

========================================================================= */

(strm, good_length, max_lazy, nice_length, max_chain)

Source from the content-addressed store, hash-verified

618
619/* ========================================================================= */
620int ZEXPORT deflateTune(strm, good_length, max_lazy, nice_length, max_chain)
621 z_streamp strm;
622 int good_length;
623 int max_lazy;
624 int nice_length;
625 int max_chain;
626{
627 deflate_state *s;
628
629 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
630 s = strm->state;
631 s->good_match = (uInt)good_length;
632 s->max_lazy_match = (uInt)max_lazy;
633 s->nice_match = nice_length;
634 s->max_chain_length = (uInt)max_chain;
635 return Z_OK;
636}
637
638/* =========================================================================
639 * For the default windowBits of 15 and memLevel of 8, this function returns

Callers 1

zstd_zlibwrapper.cFile · 0.85

Calls 1

deflateStateCheckFunction · 0.85

Tested by

no test coverage detected