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

Method readBits

java/org/brotli/dec/BitReader.java:162–168  ·  view source on GitHub ↗
(State s, int n)

Source from the content-addressed store, hash-verified

160 }
161
162 static int readBits(State s, int n) {
163 if (HALF_BITNESS >= 24) {
164 return readFewBits(s, n);
165 } else {
166 return (n <= 16) ? readFewBits(s, n) : readManyBits(s, n);
167 }
168 }
169
170 private static int readManyBits(State s, int n) {
171 final int low = readFewBits(s, 16);

Callers 4

readBlockLengthMethod · 0.95
decompressMethod · 0.95
testReadAfterEosMethod · 0.95

Calls 2

readFewBitsMethod · 0.95
readManyBitsMethod · 0.95

Tested by 2

testReadAfterEosMethod · 0.76