2 writes to _bits
Microsoft.CodeAnalysis (2)
Collections\BitVector.cs (2)
36_bits = bits; 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
33 references to _bits
Microsoft.CodeAnalysis (33)
Collections\BitVector.cs (33)
47&& _bits.AsSpan().SequenceEqual(other._bits.AsSpan()); 69if (_bits != null) 71for (int i = 0; i < _bits.Length; i++) 73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 92Debug.Assert(_capacity == 0 || WordsForCapacity(_capacity) <= _bits.Length); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 114for (int i = 0, n = _bits?.Length ?? 0; i < n; i++) 116yield return _bits![i]; 135for (int i = 0; i < _bits.Length; i++) 137Word w = _bits[i]; 216if (_bits is null || _bits.Length == 0) 222newBits = (Word[])_bits.Clone(); 234if (!(_bits is null)) 236for (int i = 0; i < _bits.Length; i++) 238_bits[i] = ~_bits[i]; 250return _bits == null; 266int otherLength = other._bits.Length; 267var thisBits = _bits; 287var newV = oldV & other._bits[i]; 328for (int i = 0; i < other._bits.Length; i++) 330oldbits = _bits[i]; 331_bits[i] |= other._bits[i]; 333if (_bits[i] != oldbits) 351var word = (i < 0) ? _bits0 : _bits[i]; 375_bits[i] |= mask; 377_bits[i] &= ~mask; 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);