2 writes to _advancedBytesForChunk
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\Http1OutputProducer.cs (2)
271_advancedBytesForChunk += bytes; 669_advancedBytesForChunk = 0;
16 references to _advancedBytesForChunk
Microsoft.AspNetCore.Server.Kestrel.Core (16)
Internal\Http\Http1OutputProducer.cs (16)
152if (_advancedBytesForChunk > 0) 176Debug.Assert(producer._responseBodyMode == ResponseBodyMode.Chunked && 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) 579if (_advancedBytesForChunk > 0) 620else if (_advancedBytesForChunk >= _currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - sizeHint && _advancedBytesForChunk > 0) 632_currentMemoryPrefixBytes + _advancedBytesForChunk, 633_currentChunkMemory.Length - _currentMemoryPrefixBytes - EndChunkLength - _advancedBytesForChunk); 651Debug.Assert(_advancedBytesForChunk <= _currentChunkMemory.Length); 652Debug.Assert(_advancedBytesForChunk > 0); 654var bytesWritten = writer.WriteBeginChunkBytes(_advancedBytesForChunk); 663_currentChunkMemory.Slice(_currentMemoryPrefixBytes, _advancedBytesForChunk).CopyTo(_currentChunkMemory.Slice(bytesWritten)); 666writer.Advance(_advancedBytesForChunk);