44 references to Length
dotnet-sourcelink (2)
ILCompiler.Compiler (2)
Compiler\Dataflow\FlowAnnotations.cs (2)
315Debug.Assert(blobReader.Length == 8); 316if (blobReader.Length != 8)
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.Constant.cs (1)
44return HandleString(blob.ReadUTF16(blob.Length));
ILCompiler.ReadyToRun (4)
Compiler\DependencyAnalysis\ReadyToRun\CopiedMetadataBlobNode.cs (1)
142Debug.Assert(builder.CountBytes == metadataBlob.Length);
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
95if (localsBlob.Length == 0)
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\PEReaderExtensions.cs (2)
38if (exportTableHeader.Length == 0) 43ExportTableHeaderLength = exportTableHeader.Length;
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (1)
319return new ReadOnlySpan<byte>(blobReader.CurrentPointer, blobReader.Length);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
221return new ReadOnlySpan<byte>(br.StartPointer, br.Length);
Microsoft.Build.Tasks.Core (1)
ManifestUtil\MetadataReader.cs (1)
169byte[] pk = br.ReadBytes(br.Length);
Microsoft.CodeAnalysis (6)
DiagnosticAnalyzer\AnalyzerFileReference.cs (2)
300if (argsReader.Length == 4) 316if (argsReader.Length > 4)
MetadataReader\PEModule.cs (4)
1847if (blobReader.Length >= 4) 2059if (reader.Length > 4) 2157if (reader.Length > 4) 3776return ConstantValue.Create(reader.ReadUTF16(reader.Length));
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\DocumentDebugInfoReader.cs (1)
74var sourceLinkJson = blobReader.ReadUTF8(blobReader.Length);
Microsoft.CodeAnalysis.Rebuild (2)
CompilationOptionsReader.cs (2)
132_sourceLinkUtf8 = optionsBlob.ReadBytes(optionsBlob.Length); 261return reader.ReadBytes(reader.Length);
Microsoft.Diagnostics.DataContractReader.Legacy (14)
MetaDataImportImpl.cs (14)
545*pcbSigBlob = (uint)blobReader.Length; 623*pcbSigBlob = (uint)blobReader.Length; 645*pcchValue = (uint)constant.TypeCode == (uint)CorElementType.String ? (uint)valueReader.Length / sizeof(char) : (uint)valueReader.Length; 924*pcbSig = (uint)blobReader.Length; 976*pcbData = (uint)blobReader.Length; 1174*pbSig = (uint)blobReader.Length; 1361*pcbSig = (uint)blobReader.Length; 1585*pcchValue = (uint)constant.TypeCode == (uint)CorElementType.String ? (uint)valueReader.Length / sizeof(char) : (uint)valueReader.Length; 1676*pcbPublicKey = (uint)publicKeyReader.Length; 1708if (!assemblyDef.PublicKey.IsNil && _reader.GetBlobReader(assemblyDef.PublicKey).Length > 0) 1779*pcbPublicKeyOrToken = (uint)publicKeyReader.Length; 1811*pcbHashValue = (uint)hashReader.Length;
System.Reflection.Metadata (5)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
214if (genericContextReader.Length == 0)
System\Reflection\Metadata\Internal\BlobHeap.cs (1)
207builder.Append(partReader.ReadUTF8(partReader.Length));
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
621if (sig.Length < 2 ||
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (1)
148if (rawBlobReader.Length != 8)
System\Reflection\PortableExecutable\PEReader.cs (1)
564int entryCount = reader.Length / DebugDirectoryEntry.Size;
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
65return reader.ReadUTF16(reader.Length);
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
115return new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
87ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
40if (length + sizeof(int) > blobReader.Length)