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

Method Start

pkg/segment/set.go:1812–1817  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1810// Start is equivalent to Range().Start, but should be preferred if only the
1811// start of the range is needed.
1812func (gap GapIterator) Start() Key {
1813 if ps := gap.PrevSegment(); ps.Ok() {
1814 return ps.End()
1815 }
1816 return Functions{}.MinKey()
1817}
1818
1819// End is equivalent to Range().End, but should be preferred if only the end of
1820// the range is needed.

Callers 1

RangeMethod · 0.95

Calls 4

PrevSegmentMethod · 0.95
MinKeyMethod · 0.65
OkMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected