2 writes to _buffer
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
src\Shared\BufferWriterPool\BufferWriter.cs (2)
76
Array.Resize(ref
_buffer
, value);
185
Array.Resize(ref
_buffer
, targetCapacity);
10 references to _buffer
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
src\Shared\BufferWriterPool\BufferWriter.cs (10)
45
public ReadOnlyMemory<T> WrittenMemory =>
_buffer
.AsMemory(0, WrittenCount);
54
public ReadOnlySpan<T> WrittenSpan =>
_buffer
.AsSpan(0, WrittenCount);
70
get =>
_buffer
.Length;
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;
174
var targetCapacity =
_buffer
.Length == 0 ? DefaultCapacity :
_buffer
.Length * 2;