25 references to SequencePosition
System.Memory (16)
System\Buffers\ReadOnlySequence.cs (10)
63get => new SequencePosition(_startObject, GetIndex(_startInteger)); 72get => new SequencePosition(_endObject, GetIndex(_endInteger)); 214begin = new SequencePosition(startObject, startIndex); 238end = new SequencePosition(beginObject, beginIndex + (int)length); 248begin = new SequencePosition(startObject, startIndex); 253end = new SequencePosition(startObject, startIndex + (int)length); 335return SliceImpl(new SequencePosition(startObject, (int)startIndex + (int)start), new SequencePosition(sliceEndObject, (int)sliceEndIndex)); 418return SliceImpl(new SequencePosition(sliceStartObject, (int)sliceStartIndex), new SequencePosition(sliceStartObject, (int)sliceStartIndex + (int)length));
System\Buffers\ReadOnlySequence.Helpers.cs (6)
43next = new SequencePosition(nextSegment, 0); 267return new SequencePosition(startObject, startIndex + (int)offset); 303return new SequencePosition(startObject, startIndex + (int)offset); 330return new SequencePosition(currentSegment, (int)offset); 429return new SequencePosition(startObject, startIndex + (int)length); 652next = new SequencePosition(segment.Next, 0);
System.Text.Json (9)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (9)
597SequencePosition start = new SequencePosition(startPosition.GetObject(), startPosition.GetInteger() + startConsumed); 598SequencePosition end = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + leftToMatch.Length); 818end = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + idx); 935end = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + idx); 1085end = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + idx); 1238SequencePosition end = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + i); 2181SequencePosition start = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + _consumed); 2192SequencePosition end = new SequencePosition(_currentPosition.GetObject(), _currentPosition.GetInteger() + _consumed); 2621return new SequencePosition(_prevCurrentPosition.GetObject(), _prevCurrentPosition.GetInteger() + _prevConsumed + offset);