44 instantiations of PEHeaders
ILLink.Tasks (1)
Utils.cs (1)
16 PEHeaders headers = new PEHeaders (fileStream);
Microsoft.CodeAnalysis (2)
CvtRes.cs (1)
179var peHeaders = new PEHeaders(stream);
MetadataReference\ModuleMetadata.cs (1)
247new PEHeaders(peStream);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
7343var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(subsystemVersion: SubsystemVersion.Create(5, 1))));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (24)
Emit\CompilationEmitTests.cs (23)
585int entryPoint = new PEHeaders(stream).CorHeader.EntryPointTokenOrRelativeVirtualAddress; 3486peHeaders = new PEHeaders(compilation.EmitToStream()); 3490peHeaders = new PEHeaders(compilation.EmitToStream()); 3494peHeaders = new PEHeaders(compilation.EmitToStream()); 3500peHeaders = new PEHeaders(compilation.EmitToStream()); 3506peHeaders = new PEHeaders(compilation.EmitToStream()); 3525var peHeaders = new PEHeaders(compilation.EmitToStream()); 3559var peHeaders = new PEHeaders(compilation.EmitToStream()); 3609var peHeaders = new PEHeaders(compilation.EmitToStream()); 3649var peHeaders = new PEHeaders(compilation.EmitToStream()); 3689var peHeaders = new PEHeaders(compilation.EmitToStream()); 3721var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(highEntropyVirtualAddressSpace: true))); 3739var peHeaders = new PEHeaders(compilation.EmitToStream()); 3757var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x0000000010111111))); 3762peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x8000))); 3767peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x7fff))); 3772peHeaders = new PEHeaders(compilation.EmitToStream(options: EmitOptions.Default)); 3777peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffff7fff))); 3782peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffff8000))); 3786peHeaders = new PEHeaders(compilation.EmitToStream(options: EmitOptions.Default)); 3791peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffffffffffff7fff))); 3796peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffffffffffff8000))); 3811var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(fileAlignment: 1024)));
Emit\EmitMetadataTests.cs (1)
2427var peHeaders = new PEHeaders(peStream);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
2231PEHeaders h = new PEHeaders(new MemoryStream(netModule));
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\ILValidation.cs (1)
43var peHeaders = new PEHeaders(moduleContents);
Microsoft.CodeAnalysis.UnitTests (6)
MetadataReferences\ModuleMetadataTests.cs (6)
38PEHeaders h = new PEHeaders(new MemoryStream(assembly)); 51PEHeaders h = new PEHeaders(new MemoryStream(netModule)); 63PEHeaders h = new PEHeaders(new MemoryStream(assembly)); 77PEHeaders h = new PEHeaders(new MemoryStream(netModule)); 206PEHeaders h = new PEHeaders(new MemoryStream(assembly)); 264PEHeaders h = new PEHeaders(new MemoryStream(assembly));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
6498Dim peHeaders = New PEHeaders(comp.EmitToStream(New EmitOptions(subsystemVersion:=SubsystemVersion.Create(5, 1))))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\InternalsVisibleToAndStrongNameTests.vb (4)
59Dim headers = New PEHeaders(outStream) 1186Dim peHeaders = New PEHeaders(other.EmitToStream()) 1366Dim peHeaders = New PEHeaders(other.EmitToStream()) 1758Dim peHeaders = New PEHeaders(other.EmitToStream())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2471Dim headers = New PEHeaders(New MemoryStream(moduleBytes))
System.Reflection.Metadata (2)
System\Reflection\PortableExecutable\PEReader.cs (2)
203_lazyPEHeaders = new PEHeaders(peStream, actualSize, IsLoadedImage); 335return new PEHeaders(stream, imageSize, isLoadedImage);
40 references to PEHeaders
ILLink.Tasks (1)
Utils.cs (1)
16 PEHeaders headers = new PEHeaders (fileStream);
Microsoft.CodeAnalysis (1)
CvtRes.cs (1)
179var peHeaders = new PEHeaders(stream);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
7343var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(subsystemVersion: SubsystemVersion.Create(5, 1))));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
Emit\CompilationEmitTests.cs (10)
3483PEHeaders peHeaders; 3525var peHeaders = new PEHeaders(compilation.EmitToStream()); 3559var peHeaders = new PEHeaders(compilation.EmitToStream()); 3609var peHeaders = new PEHeaders(compilation.EmitToStream()); 3649var peHeaders = new PEHeaders(compilation.EmitToStream()); 3689var peHeaders = new PEHeaders(compilation.EmitToStream()); 3721var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(highEntropyVirtualAddressSpace: true))); 3739var peHeaders = new PEHeaders(compilation.EmitToStream()); 3757var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x0000000010111111))); 3811var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(fileAlignment: 1024)));
Emit\EmitMetadataTests.cs (2)
2240var peHeaders = peReader.PEHeaders; 2427var peHeaders = new PEHeaders(peStream);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
2231PEHeaders h = new PEHeaders(new MemoryStream(netModule));
Microsoft.CodeAnalysis.Features (1)
Emit\CompilationOutputs.cs (1)
53PEHeaders peHeaders;
Microsoft.CodeAnalysis.Test.Utilities (5)
Metadata\ILValidation.cs (3)
43var peHeaders = new PEHeaders(moduleContents); 127PEHeaders peHeaders, 180private static int GetAuthenticodeOffset(PEHeaders peHeaders, bool is32bit)
Metadata\MetadataReaderUtils.cs (2)
75internal static bool RequiresAmdInstructionSet(this PEHeaders headers) 80internal static bool Requires64Bits(this PEHeaders headers)
Microsoft.CodeAnalysis.UnitTests (6)
MetadataReferences\ModuleMetadataTests.cs (6)
38PEHeaders h = new PEHeaders(new MemoryStream(assembly)); 51PEHeaders h = new PEHeaders(new MemoryStream(netModule)); 63PEHeaders h = new PEHeaders(new MemoryStream(assembly)); 77PEHeaders h = new PEHeaders(new MemoryStream(netModule)); 206PEHeaders h = new PEHeaders(new MemoryStream(assembly)); 264PEHeaders h = new PEHeaders(new MemoryStream(assembly));
Microsoft.DotNet.Arcade.Sdk (1)
src\Unsign.cs (1)
50var headers = peReader.PEHeaders;
Microsoft.DotNet.SignTool (1)
src\ContentUtil.cs (1)
100var headers = peReader.PEHeaders;
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
217var headers = new PEHeaders(fileStream);
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
295var headers = peReader.PEHeaders;
System.Reflection.Metadata (6)
System\Reflection\PortableExecutable\PEBuilder.cs (1)
164builder.WriteUInt32(PEHeaders.PESignature);
System\Reflection\PortableExecutable\PEHeaderBuilder.cs (1)
112PEHeaders.PESignatureSize +
System\Reflection\PortableExecutable\PEReader.cs (4)
38private PEHeaders? _lazyPEHeaders; 294public PEHeaders PEHeaders 314PEHeaders headers; 331private static PEHeaders ReadPEHeadersNoLock(Stream stream, long imageStartPosition, int imageSize, bool isLoadedImage)
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (2)
51PEHeaders peHeaders = PEReader.PEHeaders; 89PEHeaders peHeaders = PEReader.PEHeaders;