3 writes to WrittenCount
Shared (3)
BufferWriterPool\BufferWriter.cs (3)
79WrittenCount = value; 106WrittenCount = 0; 123WrittenCount += count;
11 references to WrittenCount
Shared (11)
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;