10 writes to _bitLength
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (10)
69
_bitLength
= length;
84
_bitLength
= info.GetInt32("m_length");
146
_array = CreateArray(bytes, out
_bitLength
);
165
_array = CreateArray(bytes, out
_bitLength
);
195
_array = CreateArray(values, out
_bitLength
);
208
_array = CreateArray(values, out
_bitLength
);
307
_array = CreateArray(values, out
_bitLength
);
326
_array = CreateArray(values, out
_bitLength
);
360
_bitLength
= bits._bitLength;
748
_bitLength
= value;
41 references to _bitLength
System.Private.CoreLib (41)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (41)
87
if (array is null || (uint)
_bitLength
> checked((uint)array.Length * BitsPerInt32))
92
_array = AllocateByteArray(
_bitLength
);
110
var m_array = new int[GetInt32ArrayLengthFromBitLength(
_bitLength
)];
114
info.AddValue("m_length",
_bitLength
);
120
(uint index, uint extraBits) = Math.DivRem((uint)
_bitLength
, BitsPerInt32);
360
_bitLength = bits.
_bitLength
;
361
_array = AllocateByteArray(
_bitLength
);
390
if ((uint)index >= (uint)
_bitLength
)
409
if ((uint)index >= (uint)
_bitLength
)
438
_array.AsSpan(0, GetByteArrayLengthFromBitLength(
_bitLength
)).Fill(0xFF);
443
_array.AsSpan(0, GetByteArrayLengthFromBitLength(
_bitLength
)).Clear();
614
int ints = GetInt32ArrayLengthFromBitLength(
_bitLength
);
615
if (count <
_bitLength
)
619
int extraBits = (int)((uint)
_bitLength
% 32);
677
if (count <
_bitLength
)
679
int lastIndex = (int)((uint)(
_bitLength
- 1) / BitsPerInt32);
705
lengthToClear = GetInt32ArrayLengthFromBitLength(
_bitLength
); // Clear all
720
get =>
_bitLength
;
732
int currentByteLength = GetByteArrayLengthFromBitLength(
_bitLength
);
768
int intLength = GetInt32ArrayLengthFromBitLength(
_bitLength
);
787
uint extraBits = (uint)
_bitLength
% BitsPerInt32;
796
int byteLength = GetByteArrayLengthFromBitLength(
_bitLength
);
808
uint extraBits = (uint)
_bitLength
% BitsPerByte;
817
if (boolArray.Length - index <
_bitLength
)
824
if (!BitConverter.IsLittleEndian ||
_bitLength
< BitsPerInt32)
837
if (Vector512.IsHardwareAccelerated && (uint)
_bitLength
>= Vector512<byte>.Count)
848
for (; (i + Vector512<byte>.Count) <= (uint)
_bitLength
; i += (uint)Vector512<byte>.Count)
862
else if (Vector256.IsHardwareAccelerated && (uint)
_bitLength
>= Vector256<byte>.Count)
870
for (; (i + Vector256<byte>.Count) <= (uint)
_bitLength
; i += (uint)Vector256<byte>.Count)
884
else if (Vector128.IsHardwareAccelerated && ((uint)
_bitLength
>= Vector128<byte>.Count * 2u))
893
for (; (i + Vector128<byte>.Count * 2u) <= (uint)
_bitLength
; i += (uint)Vector128<byte>.Count * 2u)
913
for (; i < (uint)
_bitLength
; i++)
931
uint extraBits = (uint)
_bitLength
% BitsPerByte;
932
int byteCount = GetByteArrayLengthFromBitLength(
_bitLength
);
958
uint extraBits = (uint)
_bitLength
% BitsPerByte;
959
int byteCount = GetByteArrayLengthFromBitLength(
_bitLength
);
993
public int Count =>
_bitLength
;
1077
if (_index < (_bitArray.
_bitLength
- 1))
1084
_index = _bitArray.
_bitLength
;
1092
if ((uint)_index >= (uint)_bitArray.
_bitLength
)
1119
Debug.Assert(index >= _bitArray.
_bitLength
);