7 writes to _countInCurrentSegment
System.Linq (7)
System\Linq\SegmentedArrayBuilder.cs (7)
110_countInCurrentSegment++; 123_countInCurrentSegment = 1; 147_countInCurrentSegment += sourceSlice.Length; 154_countInCurrentSegment = sourceSlice.Length; 177_countInCurrentSegment = collectionCount; 185_countInCurrentSegment += collectionCount; 233_countInCurrentSegment = countInCurrentSegment;
10 references to _countInCurrentSegment
System.Linq (10)
System\Linq\SegmentedArrayBuilder.cs (10)
79Array.Clear(currentSegment, 0, _countInCurrentSegment); 99public readonly int Count => checked(_countInFinishedSegments + _countInCurrentSegment); 106int countInCurrentSegment = _countInCurrentSegment; 144int availableSpaceInCurrentSpan = _currentSegment.Length - _countInCurrentSegment; 146sourceSlice.CopyTo(_currentSegment.Slice(_countInCurrentSegment)); 162bool currentSegmentIsScratchBufferWithRemainingSpace = _segmentsCount == 0 && _countInCurrentSegment < _currentSegment.Length; 169int remainingSpaceInCurrentSegment = _currentSegment.Length - _countInCurrentSegment; 184collection.CopyTo(_segments[_segmentsCount - 1], _countInCurrentSegment); 215int countInCurrentSegment = _countInCurrentSegment; 328_currentSegment.Slice(0, _countInCurrentSegment).CopyTo(destination);