MCPcopy
hub / github.com/google/gvisor / End

Method End

pkg/segment/set.go:1821–1826  ·  view source on GitHub ↗

End is equivalent to Range().End, but should be preferred if only the end of the range is needed.

()

Source from the content-addressed store, hash-verified

1819// End is equivalent to Range().End, but should be preferred if only the end of
1820// the range is needed.
1821func (gap GapIterator) End() Key {
1822 if ns := gap.NextSegment(); ns.Ok() {
1823 return ns.Start()
1824 }
1825 return Functions{}.MaxKey()
1826}
1827
1828// IsEmpty returns true if the iterated gap is empty (that is, the "gap" is
1829// between two adjacent segments.)

Callers 1

RangeMethod · 0.95

Calls 4

NextSegmentMethod · 0.95
StartMethod · 0.65
MaxKeyMethod · 0.65
OkMethod · 0.45

Tested by

no test coverage detected