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

Method SetEndUnchecked

pkg/segment/set.go:1665–1667  ·  view source on GitHub ↗

SetEndUnchecked mutates the iterated segment's end. This operation does not invalidate any iterators. Preconditions: The new end must be valid: - end > seg.Start(). - If seg.NextSegment().Ok(), then end <= seg.NextSegment().Start().

(end Key)

Source from the content-addressed store, hash-verified

1663// - end > seg.Start().
1664// - If seg.NextSegment().Ok(), then end <= seg.NextSegment().Start().
1665func (seg Iterator) SetEndUnchecked(end Key) {
1666 seg.node.keys[seg.index].End = end
1667}
1668
1669// SetEnd mutates the iterated segment's end. If the new end value would cause
1670// the iterated segment to overlap another segment, or would result in an

Callers 4

SetEndMethod · 0.95
InsertMethod · 0.80
MergeUncheckedMethod · 0.80
SplitUncheckedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected