3 writes to WrittenCount
Shared (3)
BufferWriterPool\BufferWriter.cs (3)
79
WrittenCount
= value;
106
WrittenCount
= 0;
123
WrittenCount
+= count;
11 references to WrittenCount
Shared (11)
BufferWriterPool\BufferWriter.cs (11)
45
public ReadOnlyMemory<T> WrittenMemory => _buffer.AsMemory(0,
WrittenCount
);
54
public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0,
WrittenCount
);
65
/// When reducing the capacity, the value of <see cref="
WrittenCount
" /> is clamped to the
77
if (
WrittenCount
> value)
103
_buffer.AsSpan(0,
WrittenCount
).Clear();
121
_ = Throw.IfOutOfRange(count, 0, _buffer.Length -
WrittenCount
);
142
return _buffer.AsMemory(
WrittenCount
);
161
return _buffer.AsSpan(
WrittenCount
);
171
var avail = _buffer.Length -
WrittenCount
;
175
if (targetCapacity -
WrittenCount
< sizeHint)
177
targetCapacity =
WrittenCount
+ sizeHint;