1 write to _trait
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\CircularBufferBuckets.cs (1)
81
_trait
= new long[capacity];
14 references to _trait
System.Diagnostics.DiagnosticSource (14)
System\Diagnostics\Metrics\CircularBufferBuckets.cs (14)
55
Debug.Assert(
_trait
is not null, "trait was null");
57
return
_trait
![ModuloIndex(index)];
79
if (
_trait
== null)
85
_trait
[ModuloIndex(index)] += value;
103
_trait
[ModuloIndex(index)] += value;
117
_trait
[ModuloIndex(index)] += value;
145
if (
_trait
== null)
166
ScaleDownInternal(
_trait
, offset, currentBegin, currentEnd, capacity);
174
ScaleDownInternal(
_trait
, offset + 1, currentBegin, currentEnd, capacity);
188
AdjustPosition(
_trait
, offset, (uint)ModuloIndex(currentBegin), (uint)(currentEnd - currentBegin + 1), capacity);
267
if (
_trait
== null || size <= 0)
276
result[i] =
_trait
[ModuloIndex(_begin + i)];
284
if (
_trait
is not null)
287
Array.Clear(
_trait
);