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

Function wfblk

packages/replay-worker/examples/worker.js:299–309  ·  view source on GitHub ↗
(out, pos, dat)

Source from the content-addressed store, hash-verified

297// writes a fixed block
298// returns the new bit pos
299var wfblk = function (out, pos, dat) {
300 // no need to write 00 as type: TypedArray defaults to 0
301 var s = dat.length;
302 var o = shft(pos + 2);
303 out[o] = s & 255;
304 out[o + 1] = s >> 8;
305 out[o + 2] = out[o] ^ 255;
306 out[o + 3] = out[o + 1] ^ 255;
307 for (var i = 0; i < s; ++i) out[o + i + 4] = dat[i];
308 return (o + 4 + s) * 8;
309};
310// writes a block
311var wblk = function (dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
312 wbits(out, p++, final);

Callers 2

wblkFunction · 0.85
dfltFunction · 0.85

Calls 1

shftFunction · 0.85

Tested by

no test coverage detected