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