5 writes to _currentSegmentIndex
Microsoft.AspNetCore.OutputCaching (5)
RecyclableSequenceBuilder.cs (5)
43_currentSegmentIndex = 0; 52_currentSegmentIndex = 0; 70_currentSegmentIndex = 0; 80_currentSegmentIndex = 0; 115_currentSegmentIndex += count;
6 references to _currentSegmentIndex
Microsoft.AspNetCore.OutputCaching (6)
RecyclableSequenceBuilder.cs (6)
38ReadOnlyMemory<byte> memory = _firstSegment.Memory.Slice(0, _currentSegmentIndex); 48var payload = new ReadOnlySequence<byte>(_firstSegment, 0, _currentSegment!, _currentSegmentIndex); 75Debug.Assert(_currentSegmentIndex >= 0 && _currentSegmentIndex <= current.Length); 77if (_currentSegmentIndex == current.Length) 85return MemoryMarshal.AsMemory(current).Span.Slice(_currentSegmentIndex);