2 writes to _advancedBytesForChunk
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\Http1OutputProducer.cs (2)
271
_advancedBytesForChunk
+= bytes;
665
_advancedBytesForChunk
= 0;
16 references to _advancedBytesForChunk
Microsoft.AspNetCore.Server.Kestrel.Core (16)
Internal\Http\Http1OutputProducer.cs (16)
152
if (
_advancedBytesForChunk
> 0)
176
Debug.Assert(producer._autoChunk && producer.
_advancedBytesForChunk
> 0);
267
if (
_advancedBytesForChunk
> _currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - bytes)
284
var bytes = _position +
_advancedBytesForChunk
+ _pipeWriter.UnflushedBytes + _completedSegmentsByteCount;
308
if (
_advancedBytesForChunk
> 0 || buffer.Length > 0)
321
if (
_advancedBytesForChunk
> 0)
575
if (
_advancedBytesForChunk
> 0)
616
else if (
_advancedBytesForChunk
>= _currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - sizeHint &&
_advancedBytesForChunk
> 0)
628
_currentMemoryPrefixBytes +
_advancedBytesForChunk
,
629
_currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength -
_advancedBytesForChunk
);
647
Debug.Assert(
_advancedBytesForChunk
<= _currentChunkMemory.Length);
648
Debug.Assert(
_advancedBytesForChunk
> 0);
650
var bytesWritten = writer.WriteBeginChunkBytes(
_advancedBytesForChunk
);
659
_currentChunkMemory.Slice(_currentMemoryPrefixBytes,
_advancedBytesForChunk
).CopyTo(_currentChunkMemory.Slice(bytesWritten));
662
writer.Advance(
_advancedBytesForChunk
);