PeekNextBase returns the base of the next block without advancing the decoder.
()
| 360 | |
| 361 | // PeekNextBase returns the base of the next block without advancing the decoder. |
| 362 | func (d *Decoder) PeekNextBase() uint64 { |
| 363 | bidx := d.blockIdx + 1 |
| 364 | if bidx < len(d.Pack.Blocks) { |
| 365 | return d.Pack.Blocks[bidx].Base |
| 366 | } |
| 367 | return math.MaxUint64 |
| 368 | } |
| 369 | |
| 370 | // Valid returns true if the decoder has not reached the end of the packed data. |
| 371 | func (d *Decoder) Valid() bool { |