Fetches bits from accumulator. WARNING: accumulator MUST contain at least the specified amount of bits, otherwise BitReader will become broken.
(State s, int n)
| 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) { |
no test coverage detected