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

Function readManyBits

js/decode.ts:1605–1610  ·  view source on GitHub ↗
(s: State, n: number)

Source from the content-addressed store, hash-verified

1603 return v;
1604}
1605function readManyBits(s: State, n: number): number {
1606 const low: number = readFewBits(s, 16);
1607 s.accumulator32 = (s.shortBuffer[s.halfOffset++] << 16) | (s.accumulator32 >>> 16);
1608 s.bitOffset -= 16;
1609 return low | (readFewBits(s, n - 16) << 16);
1610}
1611function initBitReader(s: State): number {
1612 s.byteBuffer = new Int8Array(4160);
1613 s.accumulator32 = 0;

Callers 2

readBlockLengthFunction · 0.70
decompressFunction · 0.70

Calls 1

readFewBitsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…