Proper reset of decompressor getter (#299)

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
ledgerwatch 2022-02-03 17:58:56 +00:00 committed by GitHub
parent 11615db276
commit 55080d5c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,9 @@ func (d *Decompressor) MakeGetter() *Getter {
func (g *Getter) Reset(offset uint64) {
g.dataP = offset
g.offset = 0
g.mask = 0
g.b = 0
}
func (g *Getter) HasNext() bool {