(byte[] v, int vLen)
| 446 | } |
| 447 | |
| 448 | private static void inverseMoveToFrontTransform(byte[] v, int vLen) { |
| 449 | final int[] mtf = new int[256]; |
| 450 | for (int i = 0; i < 256; ++i) { |
| 451 | mtf[i] = i; |
| 452 | } |
| 453 | for (int i = 0; i < vLen; ++i) { |
| 454 | final int index = (int) v[i] & 0xFF; |
| 455 | v[i] = (byte) mtf[index]; |
| 456 | if (index != 0) { |
| 457 | moveToFront(mtf, index); |
| 458 | } |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | private static int readHuffmanCodeLengths( |
| 463 | int[] codeLengthCodeLengths, int numSymbols, int[] codeLengths, State s) { |
no test coverage detected