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