MCPcopy
hub / github.com/dgraph-io/dgraph / PeekNextBase

Method PeekNextBase

codec/codec.go:362–368  ·  view source on GitHub ↗

PeekNextBase returns the base of the next block without advancing the decoder.

()

Source from the content-addressed store, hash-verified

360
361// PeekNextBase returns the base of the next block without advancing the decoder.
362func (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.
371func (d *Decoder) Valid() bool {

Callers 1

LinearSeekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected