(hist *history)
| 670 | } |
| 671 | |
| 672 | func (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 | |
| 690 | func (b *blockDec) updateHistory(hist *history) error { |
| 691 | if len(b.data) > maxCompressedBlockSize { |
no test coverage detected