MCPcopy
hub / github.com/klauspost/compress / init

Method init

zstd/fse_decoder.go:298–302  ·  view source on GitHub ↗

Initialize and decodeAsync first state and symbol.

(br *bitReader, tableLog uint8, dt []decSymbol)

Source from the content-addressed store, hash-verified

296
297// Initialize and decodeAsync first state and symbol.
298func (s *fseState) init(br *bitReader, tableLog uint8, dt []decSymbol) {
299 s.dt = dt
300 br.fill()
301 s.state = dt[br.getBits(tableLog)]
302}
303
304// final returns the current state symbol without decoding the next.
305func (s decSymbol) final() (int, uint8) {

Callers

nothing calls this directly

Calls 2

fillMethod · 0.45
getBitsMethod · 0.45

Tested by

no test coverage detected