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

Method readFewBits

java/org/brotli/dec/BitReader.java:156–160  ·  view source on GitHub ↗

Fetches bits from accumulator. WARNING: accumulator MUST contain at least the specified amount of bits, otherwise BitReader will become broken.

(State s, int n)

Source from the content-addressed store, hash-verified

154 * otherwise BitReader will become broken.
155 */
156 static int readFewBits(State s, int n) {
157 final int v = peekBits(s) & ((1 << n) - 1);
158 s.bitOffset += n;
159 return v;
160 }
161
162 static int readBits(State s, int n) {
163 if (HALF_BITNESS >= 24) {

Callers 12

readBitsMethod · 0.95
readManyBitsMethod · 0.95
jumpToByteBoundaryMethod · 0.95
decodeWindowBitsMethod · 0.95
decodeMetaBlockLengthMethod · 0.95
readSimpleHuffmanCodeMethod · 0.95
readHuffmanCodeMethod · 0.95
decodeContextMapMethod · 0.95
decompressMethod · 0.95

Calls 1

peekBitsMethod · 0.95

Tested by

no test coverage detected