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>
53
int segmentsCount =
_segmentsCount
;
162
bool currentSegmentIsScratchBufferWithRemainingSpace =
_segmentsCount
== 0 && _countInCurrentSegment < _currentSegment.Length;
176
collection.CopyTo(_segments[
_segmentsCount
- 1], 0);
184
collection.CopyTo(_segments[
_segmentsCount
- 1], _countInCurrentSegment);
306
int segmentsCount =
_segmentsCount
;
355
_currentSegment = _segments[
_segmentsCount
] = ArrayPool<T>.Shared.Rent(newSegmentLength);