1 write to _segmentsCount
System.Linq (1)
System\Linq\SegmentedArrayBuilder.cs (1)
356_segmentsCount++;
8 references to _segmentsCount
System.Linq (8)
System\Linq\SegmentedArrayBuilder.cs (8)
28/// <remarks><see cref="_segmentsCount"/> is how many of the segments are valid in <see cref="_segments"/>, not including <see cref="_firstSegment"/>.</remarks> 33/// <summary>The current span. This points either to <see cref="_firstSegment"/> or to <see cref="_segments"/>[<see cref="_segmentsCount"/> - 1].</summary> 53int segmentsCount = _segmentsCount; 162bool currentSegmentIsScratchBufferWithRemainingSpace = _segmentsCount == 0 && _countInCurrentSegment < _currentSegment.Length; 176collection.CopyTo(_segments[_segmentsCount - 1], 0); 184collection.CopyTo(_segments[_segmentsCount - 1], _countInCurrentSegment); 306int segmentsCount = _segmentsCount; 355_currentSegment = _segments[_segmentsCount] = ArrayPool<T>.Shared.Rent(newSegmentLength);