2 writes to Size
System.Reflection.Metadata (2)
System\Reflection\PortableExecutable\DirectoryEntry.cs (2)
14Size = size; 20Size = reader.ReadInt32();
85 references to Size
BuildValidator (3)
PEReaderExtensions.cs (2)
28if ((exportTable.Size == 0) || (exportTable.RelativeVirtualAddress == 0)) 32BlobReader exportTableHeader = peImage.GetReader(peReader.GetOffset(exportTable.RelativeVirtualAddress), exportTable.Size);
Util.cs (1)
102return peReader.PEHeaders.CorHeader.ManagedNativeHeaderDirectory.Size != 0;
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
351return peReader.PEHeaders.CorHeader.ManagedNativeHeaderDirectory.Size != 0;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
12307Assert.Equal(0, debugDirectory.Size);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (51)
Emit\CompilationEmitTests.cs (9)
3589Assert.Equal(0, peHeaders.PEHeader.ImportAddressTableDirectory.Size); 3591Assert.Equal(0, peHeaders.PEHeader.ImportTableDirectory.Size); 3593Assert.Equal(0, peHeaders.PEHeader.BaseRelocationTableDirectory.Size); 3629Assert.Equal(0, peHeaders.PEHeader.ImportAddressTableDirectory.Size); 3631Assert.Equal(0, peHeaders.PEHeader.ImportTableDirectory.Size); 3633Assert.Equal(0, peHeaders.PEHeader.BaseRelocationTableDirectory.Size); 3671Assert.NotEqual(0, peHeaders.PEHeader.ImportAddressTableDirectory.Size); 3673Assert.NotEqual(0, peHeaders.PEHeader.ImportTableDirectory.Size); 3675Assert.NotEqual(0, peHeaders.PEHeader.BaseRelocationTableDirectory.Size);
Emit\EmitMetadataTests.cs (42)
2276Assert.Equal(0xc, peHeader.BaseRelocationTableDirectory.Size); 2278Assert.Equal(0, peHeader.BoundImportTableDirectory.Size); 2280Assert.Equal(0, peHeader.CertificateTableDirectory.Size); 2282Assert.Equal(0, peHeader.CopyrightTableDirectory.Size); 2284Assert.Equal(0x48, peHeader.CorHeaderTableDirectory.Size); 2286Assert.Equal(0x1C, peHeader.DebugTableDirectory.Size); 2288Assert.Equal(0, peHeader.ExceptionTableDirectory.Size); 2290Assert.Equal(0, peHeader.ExportTableDirectory.Size); 2292Assert.Equal(0x8, peHeader.ImportAddressTableDirectory.Size); 2294Assert.Equal(0x4f, peHeader.ImportTableDirectory.Size); 2296Assert.Equal(0, peHeader.LoadConfigTableDirectory.Size); 2298Assert.Equal(0, peHeader.ResourceTableDirectory.Size); 2300Assert.Equal(0, peHeader.ThreadLocalStorageTableDirectory.Size); 2306var importAddressTableDirectoryBytes = new byte[peHeader.ImportAddressTableDirectory.Size]; 2319var importTableDirectoryBytes = new byte[peHeader.ImportTableDirectory.Size]; 2365Assert.Equal(0, corHeader.CodeManagerTableDirectory.Size); 2367Assert.Equal(0, corHeader.ExportAddressTableJumpsDirectory.Size); 2369Assert.Equal(0, corHeader.ManagedNativeHeaderDirectory.Size); 2371Assert.Equal(0x02b8, corHeader.MetadataDirectory.Size); 2373Assert.Equal(0, corHeader.ResourcesDirectory.Size); 2375Assert.Equal(0, corHeader.StrongNameSignatureDirectory.Size); 2377Assert.Equal(0, corHeader.VtableFixupsDirectory.Size); 2463Assert.Equal(0, peHeader.BaseRelocationTableDirectory.Size); 2465Assert.Equal(0, peHeader.BoundImportTableDirectory.Size); 2467Assert.Equal(0, peHeader.CertificateTableDirectory.Size); 2469Assert.Equal(0, peHeader.CopyrightTableDirectory.Size); 2471Assert.Equal(0x48, peHeader.CorHeaderTableDirectory.Size); 2473Assert.Equal(0x1C, peHeader.DebugTableDirectory.Size); 2475Assert.Equal(0, peHeader.ExceptionTableDirectory.Size); 2477Assert.Equal(0, peHeader.ExportTableDirectory.Size); 2479Assert.Equal(0, peHeader.ImportAddressTableDirectory.Size); 2481Assert.Equal(0, peHeader.ImportTableDirectory.Size); 2483Assert.Equal(0, peHeader.LoadConfigTableDirectory.Size); 2485Assert.Equal(0, peHeader.ResourceTableDirectory.Size); 2487Assert.Equal(0, peHeader.ThreadLocalStorageTableDirectory.Size); 2503Assert.Equal(0, corHeader.CodeManagerTableDirectory.Size); 2505Assert.Equal(0, corHeader.ExportAddressTableJumpsDirectory.Size); 2507Assert.Equal(0, corHeader.ManagedNativeHeaderDirectory.Size); 2509Assert.Equal(0x02d0, corHeader.MetadataDirectory.Size); 2511Assert.Equal(0, corHeader.ResourcesDirectory.Size); 2513Assert.Equal(0, corHeader.StrongNameSignatureDirectory.Size); 2515Assert.Equal(0, corHeader.VtableFixupsDirectory.Size);
Microsoft.CodeAnalysis.Test.Utilities (3)
Metadata\DynamicAnalysisDataReader.cs (3)
165if (resourcesDir.Size < 0) 176if (start >= peImage.Length - resourcesDir.Size) 184if (resourceSize > resourcesDir.Size - sizeof(int))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
9718Assert.Equal(0, debugDirectory.Size)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
1367Assert.Equal(256, peHeaders.CorHeader.StrongNameSignatureDirectory.Size)
Microsoft.DotNet.Arcade.Sdk (1)
src\Unsign.cs (1)
52if (entry.Size == 0)
Microsoft.DotNet.GenFacades (1)
ClearAssemblyReferenceVersions.cs (1)
52if (peReader.PEHeaders.PEHeader.CertificateTableDirectory.Size != 0)
Microsoft.DotNet.SignTool (1)
src\ContentUtil.cs (1)
115return entry.Size > 0;
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
323if (headers.PEHeader.CertificateTableDirectory.Size > 0)
System.Reflection.Metadata (20)
System\Reflection\PortableExecutable\PEBuilder.cs (14)
308builder.WriteUInt32((uint)directories.ExportTable.Size); 310builder.WriteUInt32((uint)directories.ImportTable.Size); 312builder.WriteUInt32((uint)directories.ResourceTable.Size); 314builder.WriteUInt32((uint)directories.ExceptionTable.Size); 321builder.WriteUInt32((uint)directories.BaseRelocationTable.Size); 323builder.WriteUInt32((uint)directories.DebugTable.Size); 325builder.WriteUInt32((uint)directories.CopyrightTable.Size); 327builder.WriteUInt32((uint)directories.GlobalPointerTable.Size); 329builder.WriteUInt32((uint)directories.ThreadLocalStorageTable.Size); 331builder.WriteUInt32((uint)directories.LoadConfigTable.Size); 333builder.WriteUInt32((uint)directories.BoundImportTable.Size); 335builder.WriteUInt32((uint)directories.ImportAddressTable.Size); 337builder.WriteUInt32((uint)directories.DelayImportTable.Size); 339builder.WriteUInt32((uint)directories.CorHeaderTable.Size);
System\Reflection\PortableExecutable\PEHeaders.cs (3)
240int length = _peHeader.CorHeaderTableDirectory.Size; 332if (!canCrossSectionBoundary && directory.Size > _sectionHeaders[sectionIndex].VirtualSize - relativeOffset) 412size = _corHeader.MetadataDirectory.Size;
System\Reflection\PortableExecutable\PEReader.cs (3)
542if (debugDirectory.Size == 0) 553if (debugDirectory.Size % DebugDirectoryEntry.Size != 0) 558using (AbstractMemoryBlock block = GetPEImage().GetMemoryBlock(position, debugDirectory.Size))