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

Function deflateTune

zlib/deflate.c:819–830  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

817
818/* ========================================================================= */
819int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy,
820 int nice_length, int max_chain) {
821 deflate_state *s;
822
823 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
824 s = strm->state;
825 s->good_match = (uInt)good_length;
826 s->max_lazy_match = (uInt)max_lazy;
827 s->nice_match = nice_length;
828 s->max_chain_length = (uInt)max_chain;
829 return Z_OK;
830}
831
832/* =========================================================================
833 * For the default windowBits of 15 and memLevel of 8, this function returns a

Callers

nothing calls this directly

Calls 1

deflateStateCheckFunction · 0.85

Tested by

no test coverage detected