MCPcopy Create free account
hub / github.com/google/brotli / readBlockLength

Method readBlockLength

java/org/brotli/dec/Decode.java:430–436  ·  view source on GitHub ↗
(int[] tableGroup, int tableIdx, State s)

Source from the content-addressed store, hash-verified

428 }
429
430 private static int readBlockLength(int[] tableGroup, int tableIdx, State s) {
431 BitReader.fillBitWindow(s);
432 final int code = readSymbol(tableGroup, tableIdx, s);
433 final int n = BLOCK_LENGTH_N_BITS[code];
434 BitReader.fillBitWindow(s);
435 return BLOCK_LENGTH_OFFSET[code] + BitReader.readBits(s, n);
436 }
437
438 private static void moveToFront(int[] v, int index) {
439 int i = index;

Callers 2

Calls 3

fillBitWindowMethod · 0.95
readSymbolMethod · 0.95
readBitsMethod · 0.95

Tested by

no test coverage detected