1 write to _array
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
804
_array
= newArray;
22 references to _array
System.Collections.Concurrent (22)
System\Collections\Concurrent\ConcurrentBag.cs (22)
674
/// <summary>Head index from which to steal. This and'd with the <see cref="_mask"/> is the index into <see cref="
_array
"/>.</summary>
676
/// <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>
680
/// <summary>Mask and'd with <see cref="_headIndex"/> and <see cref="_tailIndex"/> to get an index into <see cref="
_array
"/>.</summary>
775
_array
[tail & _mask] = item;
791
var newArray = new T[
_array
.Length << 1];
795
Array.Copy(
_array
, newArray,
_array
.Length);
799
Array.Copy(
_array
, headIdx, newArray, 0,
_array
.Length - headIdx);
800
Array.Copy(
_array
, 0, newArray,
_array
.Length - headIdx, headIdx);
811
_array
[tail & _mask] = item;
852
Array.Clear(
_array
);
887
result =
_array
[idx];
890
_array
[idx] = default(T)!;
904
result =
_array
[idx];
907
_array
[idx] = default(T)!;
954
result =
_array
[(tail - 1) & _mask];
997
result =
_array
[idx];
1000
_array
[idx] = default(T)!;
1014
result =
_array
[head & _mask];
1045
array[i] =
_array
[headIndex++ & _mask];