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; 785var newArray = new T[_array.Length << 1]; 789Array.Copy(_array, newArray, _array.Length); 793Array.Copy(_array, headIdx, newArray, 0, _array.Length - headIdx); 794Array.Copy(_array, 0, newArray, _array.Length - headIdx, headIdx); 805_array[tail & _mask] = item; 846Array.Clear(_array); 881result = _array[idx]; 884_array[idx] = default(T)!; 898result = _array[idx]; 901_array[idx] = default(T)!; 948result = _array[(tail - 1) & _mask]; 991result = _array[idx]; 994_array[idx] = default(T)!; 1008result = _array[head & _mask]; 1039array[i] = _array[headIndex++ & _mask];