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

Method executeSequences

zstd/blockdec.go:672–688  ·  view source on GitHub ↗
(hist *history)

Source from the content-addressed store, hash-verified

670}
671
672func (b *blockDec) executeSequences(hist *history) error {
673 hbytes := hist.b
674 if len(hbytes) > hist.windowSize {
675 hbytes = hbytes[len(hbytes)-hist.windowSize:]
676 // We do not need history anymore.
677 if hist.dict != nil {
678 hist.dict.content = nil
679 }
680 }
681 hist.decoders.windowSize = hist.windowSize
682 hist.decoders.out = b.dst[:0]
683 err := hist.decoders.execute(b.sequence, hbytes)
684 if err != nil {
685 return err
686 }
687 return b.updateHistory(hist)
688}
689
690func (b *blockDec) updateHistory(hist *history) error {
691 if len(b.data) > maxCompressedBlockSize {

Callers 1

startStreamDecoderMethod · 0.80

Calls 2

updateHistoryMethod · 0.95
executeMethod · 0.80

Tested by

no test coverage detected