5 writes to Length
ILCompiler.ReadyToRun (1)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
281_bits.Length = other._bits.Length;
Microsoft.ML.Core (1)
Utilities\Stream.cs (1)
679returnArray.Length = numBits;
System.Data.Common (1)
System\Data\Common\DataStorage.cs (1)
269_dbNullBits.Length = capacity;
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
360ret.Length = validBitCount;
System.Windows.Forms (1)
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (1)
42_rows[rowOffset].Length = column + 1;
30 references to Length
ILCompiler.ReadyToRun (7)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (7)
280if (other._bits.Length > _bits.Length) 281_bits.Length = other._bits.Length; 283if (other._bits.Length < _bits.Length) 285for (int i = 0; i < other._bits.Length; i++) 298for (int i = (int)CompilationUnitIndex.First; i < _bits.Length; i++)
Microsoft.CodeAnalysis.Workspaces (7)
Shared\Utilities\BloomFilter_Serialization.cs (3)
28Contract.ThrowIfTrue(bitArray.Length % 8 != 0); 30writer.WriteInt32(bitArray.Length / 8); 36for (var i = 0; i < bitArray.Length; i++)
Shared\Utilities\BloomFilter.cs (4)
342hash %= _bitArray.Length; 421if (array1.Length != array2.Length) 426for (var i = 0; i < array1.Length; i++)
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\BinaryEmbedding.cs (2)
38public override int Dimensions => _vector.Length; 96int length = value.Length;
Microsoft.Extensions.AI.Integration.Tests (1)
EmbeddingGeneratorIntegrationTests.cs (1)
157byte[] result = new byte[(array.Length + 7) / 8];
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
117return x == null ? 0 : x.Length;
Microsoft.ML.Data (1)
DataView\ArrayDataViewBuilder.cs (1)
326Ch.Check(column.Index < _active.Length && _active[column.Index], "the requested column is not active");
Microsoft.ML.Ensemble (1)
EnsembleUtils.cs (1)
28Contracts.Assert(features.Length == typeVectorSize);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1694for (int i = 0; i < rowHasMissing.Length; i++)
Microsoft.ML.Transforms (1)
MissingValueReplacing.cs (1)
783Host.Assert(repIsDefault.Length == src.Length);
System.Data.Common (1)
System\Data\DataTable.cs (1)
869Debug.Assert(bitStates.Length > bitIndex);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (3)
507int count = GetByteArrayLengthFromBitLength(Length); 509if (Length != value.Length ||
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (2)
56/// <see cref="BitArray.Length"/>. The returned span's <see cref="Span{Byte}.Length"/> will be the smallest number 69array._array.AsSpan(0, BitArray.GetByteArrayLengthFromBitLength(array.Length));
System.Windows.Forms (2)
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (2)
23if (column >= _rows[rowOffset].Length) 40if (column >= _rows[rowOffset].Length)