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

Function gzipSync

packages/replay-worker/examples/worker.js:698–706  ·  view source on GitHub ↗

* Compresses data with GZIP * @param data The data to compress * @param opts The compression options * @returns The gzipped version of the data

(data, opts)

Source from the content-addressed store, hash-verified

696 * @returns The gzipped version of the data
697 */
698function gzipSync(data, opts) {
699 if (!opts) opts = {};
700 var c = crc(),
701 l = data.length;
702 c.p(data);
703 var d = dopt(data, opts, gzhl(opts), 8),
704 s = d.length;
705 return (gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d);
706}
707/**
708 * Streaming Zlib compression
709 */

Callers 1

compressFunction · 0.85

Calls 5

crcFunction · 0.85
doptFunction · 0.85
gzhlFunction · 0.85
gzhFunction · 0.85
wbytesFunction · 0.85

Tested by

no test coverage detected