MCPcopy Index your code
hub / github.com/klauspost/compress / decSymbolValue

Function decSymbolValue

zstd/fse_decoder.go:256–262  ·  view source on GitHub ↗

decSymbolValue returns the transformed decSymbol for the given symbol.

(symb uint8, t []baseOffset)

Source from the content-addressed store, hash-verified

254
255// decSymbolValue returns the transformed decSymbol for the given symbol.
256func 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.
265func (s *fseDecoder) setRLE(symbol decSymbol) {

Callers 1

prepareSequencesMethod · 0.85

Calls 1

newDecSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…