2 writes to _currentChunkMemory
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\Http1OutputProducer.cs (2)
636
_currentChunkMemory
= _pipeWriter.GetMemory(sizeHint);
640
_currentChunkMemory
= _currentChunkMemory.Slice(0, _currentChunkMemory.Length - 1);
10 references to _currentChunkMemory
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http\Http1OutputProducer.cs (10)
267
if (_advancedBytesForChunk >
_currentChunkMemory
.Length - _currentMemoryPrefixBytes - EndChunkLength - bytes)
616
else if (_advancedBytesForChunk >=
_currentChunkMemory
.Length - _currentMemoryPrefixBytes - EndChunkLength - sizeHint && _advancedBytesForChunk > 0)
627
var actualMemory =
_currentChunkMemory
.Slice(
629
_currentChunkMemory
.Length - _currentMemoryPrefixBytes - EndChunkLength - _advancedBytesForChunk);
637
_currentMemoryPrefixBytes = ChunkWriter.GetPrefixBytesForChunk(
_currentChunkMemory
.Length, out var sliceOne);
640
_currentChunkMemory =
_currentChunkMemory
.Slice(0,
_currentChunkMemory
.Length - 1);
647
Debug.Assert(_advancedBytesForChunk <=
_currentChunkMemory
.Length);
659
_currentChunkMemory
.Slice(_currentMemoryPrefixBytes, _advancedBytesForChunk).CopyTo(
_currentChunkMemory
.Slice(bytesWritten));