PeekNextBase returns the base of the next block without advancing the decoder.
()
| 325 | |
| 326 | // PeekNextBase returns the base of the next block without advancing the decoder. |
| 327 | func (d *Decoder) PeekNextBase() uint64 { |
| 328 | bidx := d.blockIdx + 1 |
| 329 | if bidx < len(d.Pack.Blocks) { |
| 330 | return d.Pack.Blocks[bidx].Base |
| 331 | } |
| 332 | return math.MaxUint64 |
| 333 | } |
| 334 | |
| 335 | // Valid returns true if the decoder has not reached the end of the packed data. |
| 336 | func (d *Decoder) Valid() bool { |