decSymbolValue returns the transformed decSymbol for the given symbol.
(symb uint8, t []baseOffset)
| 254 | |
| 255 | // decSymbolValue returns the transformed decSymbol for the given symbol. |
| 256 | func decSymbolValue(symb uint8, t []baseOffset) (decSymbol, error) { |
| 257 | if int(symb) >= len(t) { |
| 258 | return 0, fmt.Errorf("rle symbol %d >= max %d", symb, len(t)) |
| 259 | } |
| 260 | lu := t[symb] |
| 261 | return newDecSymbol(0, lu.addBits, 0, lu.baseLine), nil |
| 262 | } |
| 263 | |
| 264 | // setRLE will set the decoder til RLE mode. |
| 265 | func (s *fseDecoder) setRLE(symbol decSymbol) { |
no test coverage detected
searching dependent graphs…