mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-16 15:48:46 +00:00
Proper reset of decompressor getter (#299)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
11615db276
commit
55080d5c01
@ -217,6 +217,9 @@ func (d *Decompressor) MakeGetter() *Getter {
|
|||||||
|
|
||||||
func (g *Getter) Reset(offset uint64) {
|
func (g *Getter) Reset(offset uint64) {
|
||||||
g.dataP = offset
|
g.dataP = offset
|
||||||
|
g.offset = 0
|
||||||
|
g.mask = 0
|
||||||
|
g.b = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *Getter) HasNext() bool {
|
func (g *Getter) HasNext() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user