2 writes to _currentSegment
System.Linq (2)
System\Linq\SegmentedArrayBuilder.cs (2)
47
_currentSegment
= _firstSegment = scratchBuffer;
355
_currentSegment
= _segments[_segmentsCount] = ArrayPool<T>.Shared.Rent(newSegmentLength);
11 references to _currentSegment
System.Linq (11)
System\Linq\SegmentedArrayBuilder.cs (11)
105
Span<T> currentSegment =
_currentSegment
;
122
_currentSegment
[0] = item;
144
int availableSpaceInCurrentSpan =
_currentSegment
.Length - _countInCurrentSegment;
146
sourceSlice.CopyTo(
_currentSegment
.Slice(_countInCurrentSegment));
153
sourceSlice.CopyTo(
_currentSegment
);
162
bool currentSegmentIsScratchBufferWithRemainingSpace = _segmentsCount == 0 && _countInCurrentSegment <
_currentSegment
.Length;
169
int remainingSpaceInCurrentSegment =
_currentSegment
.Length - _countInCurrentSegment;
214
Span<T> currentSegment =
_currentSegment
;
227
currentSegment =
_currentSegment
;
328
_currentSegment
.Slice(0, _countInCurrentSegment).CopyTo(destination);
342
int currentSegmentLength =
_currentSegment
.Length;