4 writes to _currentSegment
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\Http1OutputProducer.cs (4)
449
_currentSegment
= default;
757
_currentSegment
= owner.Memory;
765
_currentSegment
= owner.Memory;
770
_currentSegment
= new byte[sizeHint];
7 references to _currentSegment
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\Http1OutputProducer.cs (7)
257
if (
_currentSegment
.Length - bytes < _position)
392
if (!
_currentSegment
.IsEmpty)
394
var segment =
_currentSegment
.Slice(0, _position);
715
return
_currentSegment
.Slice(_position);
722
var remainingSize =
_currentSegment
.Length - _position;
737
if (
_currentSegment
.Length != 0)
748
_completedSegments.Add(new CompletedBuffer(_currentSegmentOwner,
_currentSegment
, _position));