1 write to _elements
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
CircularBuffer.cs (1)
19
_elements
= new T[size * BufferSizeMultiplier];
7 references to _elements
Microsoft.Extensions.Diagnostics.ResourceMonitoring (7)
CircularBuffer.cs (7)
23
for (var i = 0; i <
_elements
.Length; i++)
25
_elements
[i] = defaultElement;
40
firstElementCursor +=
_elements
.Length;
43
return (
_elements
[firstElementCursor],
_elements
[lastElementCursor]);
48
var cursor = (_bufferCursor + 1) %
_elements
.Length;
49
_elements
[cursor] = newElement;