3 writes to WrittenCount
Microsoft.Extensions.Http.Diagnostics (3)
src\Shared\BufferWriterPool\BufferWriter.cs (3)
79WrittenCount = value; 106WrittenCount = 0; 123WrittenCount += count;
14 references to WrittenCount
Microsoft.Extensions.Http.Diagnostics (14)
Logging\Internal\HttpResponseBodyReader.cs (3)
97var remainingSpace = memory.Slice(bufferWriter.WrittenCount, memory.Length - bufferWriter.WrittenCount); 101await freshStream.WriteAsync(memory.Slice(0, writtenCount + bufferWriter.WrittenCount), cancellationToken)
src\Shared\BufferWriterPool\BufferWriter.cs (11)
45public ReadOnlyMemory<T> WrittenMemory => _buffer.AsMemory(0, WrittenCount); 54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount); 65/// When reducing the capacity, the value of <see cref="WrittenCount" /> is clamped to the 77if (WrittenCount > value) 100_buffer.AsSpan(0, WrittenCount).Clear(); 121_ = Throw.IfOutOfRange(count, 0, _buffer.Length - WrittenCount); 142return _buffer.AsMemory(WrittenCount); 161return _buffer.AsSpan(WrittenCount); 171var avail = _buffer.Length - WrittenCount; 175if (targetCapacity - WrittenCount < sizeHint) 177targetCapacity = WrittenCount + sizeHint;