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)
152if (_advancedBytesForChunk > 0) 176Debug.Assert(producer._autoChunk && producer._advancedBytesForChunk > 0); 267if (_advancedBytesForChunk > _currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - bytes) 284var bytes = _position + _advancedBytesForChunk + _pipeWriter.UnflushedBytes + _completedSegmentsByteCount; 308if (_advancedBytesForChunk > 0 || buffer.Length > 0) 321if (_advancedBytesForChunk > 0) 575if (_advancedBytesForChunk > 0) 616else if (_advancedBytesForChunk >= _currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - sizeHint && _advancedBytesForChunk > 0) 628_currentMemoryPrefixBytes + _advancedBytesForChunk, 629_currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - _advancedBytesForChunk); 647Debug.Assert(_advancedBytesForChunk <= _currentChunkMemory.Length); 648Debug.Assert(_advancedBytesForChunk > 0); 650var bytesWritten = writer.WriteBeginChunkBytes(_advancedBytesForChunk); 659_currentChunkMemory.Slice(_currentMemoryPrefixBytes, _advancedBytesForChunk).CopyTo(_currentChunkMemory.Slice(bytesWritten)); 662writer.Advance(_advancedBytesForChunk);