6 writes to m_length
System.Collections (6)
System\Collections\BitArray.cs (6)
48
m_length
= length;
86
m_length
= bytes.Length * BitsPerByte;
123
m_length
= values.Length;
209
m_length
= values.Length * BitsPerInt32;
230
m_length
= bits.m_length;
743
m_length
= value;
42 references to m_length
System.Collections (42)
System\Collections\BitArray.cs (42)
223
int arrayLength = GetInt32ArrayLengthFromBitLength(bits.
m_length
);
230
m_length = bits.
m_length
;
250
if ((uint)index >= (uint)
m_length
)
265
if ((uint)index >= (uint)
m_length
)
295
Div32Rem(
m_length
, out int extraBits);
611
int ints = GetInt32ArrayLengthFromBitLength(
m_length
);
612
if (count <
m_length
)
616
Div32Rem(
m_length
, out int extraBits);
675
if (count <
m_length
)
677
int lastIndex = (
m_length
- 1) >> BitShiftPerInt32; // Divide by 32.
704
lengthToClear = GetInt32ArrayLengthFromBitLength(
m_length
); // Clear all
716
return
m_length
;
729
if (value >
m_length
)
732
int last = (
m_length
- 1) >> BitShiftPerInt32;
733
Div32Rem(
m_length
, out int bits);
759
if (array.Length - index < GetInt32ArrayLengthFromBitLength(
m_length
))
764
int quotient = Div32Rem(
m_length
, out int extraBits);
776
int arrayLength = GetByteArrayLengthFromBitLength(
m_length
);
783
uint extraBits = (uint)
m_length
& (BitsPerByte - 1);
824
if (array.Length - index <
m_length
)
831
if (
m_length
< BitsPerInt32)
840
if (Avx512F.IsSupported && (uint)
m_length
>= Vector512<byte>.Count)
851
for (; (i + Vector512<byte>.Count) <= (uint)
m_length
; i += (uint)Vector512<byte>.Count)
865
else if (Avx2.IsSupported && (uint)
m_length
>= Vector256<byte>.Count)
874
for (; (i + Vector256<byte>.Count) <= (uint)
m_length
; i += (uint)Vector256<byte>.Count)
888
else if (Ssse3.IsSupported && ((uint)
m_length
>= Vector512<byte>.Count * 2u))
899
for (; (i + Vector128<byte>.Count * 2u) <= (uint)
m_length
; i += (uint)Vector128<byte>.Count * 2u)
925
for (; (i + Vector128<byte>.Count * 2u) <= (uint)
m_length
; i += (uint)Vector128<byte>.Count * 2u)
961
for (; i < (uint)
m_length
; i++)
979
Div32Rem(
m_length
, out int extraBits);
980
int intCount = GetInt32ArrayLengthFromBitLength(
m_length
);
997
Debug.Assert(GetInt32ArrayLengthFromBitLength(
m_length
) > 0);
998
Debug.Assert(intCount == GetInt32ArrayLengthFromBitLength(
m_length
) - 1);
1010
Div32Rem(
m_length
, out int extraBits);
1011
int intCount = GetInt32ArrayLengthFromBitLength(
m_length
);
1027
Debug.Assert(GetInt32ArrayLengthFromBitLength(
m_length
) > 0);
1028
Debug.Assert(intCount == GetInt32ArrayLengthFromBitLength(
m_length
) - 1);
1033
public int Count =>
m_length
;
1133
if (_index < (_bitArray.
m_length
- 1))
1141
_index = _bitArray.
m_length
;
1151
if ((uint)_index >= (uint)_bitArray.
m_length
)
1178
Debug.Assert(index >= _bitArray.
m_length
);