MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / PeekNextBase

Method PeekNextBase

bitmap/codec.go:327–333  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

325
326// PeekNextBase returns the base of the next block without advancing the decoder.
327func (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.
336func (d *Decoder) Valid() bool {

Callers 1

LinearSeekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected