MCPcopy
hub / github.com/google/brotli / initBitReader

Function initBitReader

js/decode.ts:1611–1619  ·  view source on GitHub ↗
(s: State)

Source from the content-addressed store, hash-verified

1609 return low | (readFewBits(s, n - 16) << 16);
1610}
1611function initBitReader(s: State): number {
1612 s.byteBuffer = new Int8Array(4160);
1613 s.accumulator32 = 0;
1614 s.shortBuffer = new Int16Array(2080);
1615 s.bitOffset = 32;
1616 s.halfOffset = 2048;
1617 s.endOfStreamReached = 0;
1618 return prepare(s);
1619}
1620function prepare(s: State): number {
1621 if (s.halfOffset > 2030) {
1622 const result: number = readMoreInput(s);

Callers 1

initStateFunction · 0.70

Calls 1

prepareFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…