2 writes to _capacity
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\Collections\BitVector.cs (2)
37
_capacity
= capacity;
101
_capacity
= newCapacity;
19 references to _capacity
Microsoft.CodeAnalysis.Workspaces (19)
src\Compilers\Core\Portable\Collections\BitVector.cs (19)
44
return
_capacity
== other.
_capacity
77
return Hash.Combine(
_capacity
, bitsHash);
87
public int Capacity =>
_capacity
;
92
Debug.Assert(
_capacity
== 0 || WordsForCapacity(
_capacity
) <= _bits.Length);
97
if (newCapacity >
_capacity
)
109
if (
_capacity
> 0)
130
if (bit >=
_capacity
) yield break;
146
if (bit >=
_capacity
) yield break;
225
return new BitVector(_bits0, newBits,
_capacity
);
319
if (other.
_capacity
>
_capacity
)
320
EnsureCapacity(other.
_capacity
);
348
if (index >=
_capacity
)
360
if (index >=
_capacity
)
403
var value = new char[
_capacity
];
404
for (int i = 0; i <
_capacity
; i++)
406
value[
_capacity
- i - 1] = this[i] ? '1' : '0';