2 writes to _array
System.Text.Json (2)
System\Text\Json\BitStack.cs (2)
63_array ??= new int[DefaultInitialArraySize]; 141Array.Resize(ref _array, nextDouble);
20 references to _array
System.Text.Json (20)
System\Text\Json\BitStack.cs (20)
67Debug.Assert(index >= 0, $"Set - Negative - index: {index}, arrayLength: {_array.Length}"); 70Debug.Assert(_array.Length <= int.MaxValue / 32 + 1, $"index: {index}, arrayLength: {_array.Length}"); 76if (elementIndex >= _array.Length) 79Debug.Assert(index >= 0 && index > (int)((uint)_array.Length * 32 - 1), $"Only grow when necessary - index: {index}, arrayLength: {_array.Length}"); 83Debug.Assert(elementIndex < _array.Length, $"Set - index: {index}, elementIndex: {elementIndex}, arrayLength: {_array.Length}, extraBits: {extraBits}"); 85int newValue = _array[elementIndex]; 94_array[elementIndex] = newValue; 122Debug.Assert(_array != null); 123Debug.Assert(index >= 0, $"Get - Negative - index: {index}, arrayLength: {_array.Length}"); 127Debug.Assert(elementIndex < _array.Length, $"Get - index: {index}, elementIndex: {elementIndex}, arrayLength: {_array.Length}, extraBits: {extraBits}"); 129return (_array[elementIndex] & (1 << extraBits)) != 0; 134Debug.Assert(_array != null); 135Debug.Assert(_array.Length < int.MaxValue / 2, $"Array too large - arrayLength: {_array.Length}"); 136Debug.Assert(minSize >= 0 && minSize >= _array.Length); 138int nextDouble = Math.Max(minSize + 1, _array.Length * 2);