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)
79
Array.Clear(currentSegment, 0,
_countInCurrentSegment
);
99
public readonly int Count => checked(_countInFinishedSegments +
_countInCurrentSegment
);
106
int countInCurrentSegment =
_countInCurrentSegment
;
144
int availableSpaceInCurrentSpan = _currentSegment.Length -
_countInCurrentSegment
;
146
sourceSlice.CopyTo(_currentSegment.Slice(
_countInCurrentSegment
));
162
bool currentSegmentIsScratchBufferWithRemainingSpace = _segmentsCount == 0 &&
_countInCurrentSegment
< _currentSegment.Length;
169
int remainingSpaceInCurrentSegment = _currentSegment.Length -
_countInCurrentSegment
;
184
collection.CopyTo(_segments[_segmentsCount - 1],
_countInCurrentSegment
);
215
int countInCurrentSegment =
_countInCurrentSegment
;
328
_currentSegment.Slice(0,
_countInCurrentSegment
).CopyTo(destination);