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

Function readFewBits

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

Source from the content-addressed store, hash-verified

1598 return 0;
1599}
1600function readFewBits(s: State, n: number): number {
1601 const v: number = (s.accumulator32 >>> s.bitOffset) & ((1 << n) - 1);
1602 s.bitOffset += n;
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);

Callers 12

decodeWindowBitsFunction · 0.70
decodeVarLenUnsignedByteFunction · 0.70
decodeMetaBlockLengthFunction · 0.70
readBlockLengthFunction · 0.70
readHuffmanCodeLengthsFunction · 0.70
readSimpleHuffmanCodeFunction · 0.70
readHuffmanCodeFunction · 0.70
decodeContextMapFunction · 0.70
decompressFunction · 0.70
readManyBitsFunction · 0.70
jumpToByteBoundaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…