MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / zlh

Function zlh

packages/replay-worker/examples/worker.js:615–625  ·  view source on GitHub ↗
(c, o)

Source from the content-addressed store, hash-verified

613};
614// zlib header
615var zlh = function (c, o) {
616 var lv = o.level,
617 fl = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2;
618 ((c[0] = 120), (c[1] = (fl << 6) | (o.dictionary && 32)));
619 c[1] |= 31 - (((c[0] << 8) | c[1]) % 31);
620 if (o.dictionary) {
621 var h = adler();
622 h.p(o.dictionary);
623 wbytes(c, 2, h.d());
624 }
625};
626/**
627 * Streaming DEFLATE compression
628 */

Callers 1

worker.jsFile · 0.85

Calls 2

adlerFunction · 0.85
wbytesFunction · 0.85

Tested by

no test coverage detected