1 write to _array
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
798
_array
= newArray;
22 references to _array
System.Collections.Concurrent (22)
System\Collections\Concurrent\ConcurrentBag.cs (22)
668
/// <summary>Head index from which to steal. This and'd with the <see cref="_mask"/> is the index into <see cref="
_array
"/>.</summary>
670
/// <summary>Tail index at which local pushes/pops happen. This and'd with the <see cref="_mask"/> is the index into <see cref="
_array
"/>.</summary>
674
/// <summary>Mask and'd with <see cref="_headIndex"/> and <see cref="_tailIndex"/> to get an index into <see cref="
_array
"/>.</summary>
769
_array
[tail & _mask] = item;
785
var newArray = new T[
_array
.Length << 1];
789
Array.Copy(
_array
, newArray,
_array
.Length);
793
Array.Copy(
_array
, headIdx, newArray, 0,
_array
.Length - headIdx);
794
Array.Copy(
_array
, 0, newArray,
_array
.Length - headIdx, headIdx);
805
_array
[tail & _mask] = item;
848
Array.Clear(
_array
);
884
result =
_array
[idx];
887
_array
[idx] = default(T)!;
901
result =
_array
[idx];
904
_array
[idx] = default(T)!;
951
result =
_array
[(tail - 1) & _mask];
994
result =
_array
[idx];
997
_array
[idx] = default(T)!;
1011
result =
_array
[head & _mask];
1042
array[i] =
_array
[headIndex++ & _mask];