26 references to PrefetchEntireImage
Microsoft.CodeAnalysis (8)
CommandLine\CommonCompiler.cs (1)
214return MetadataReference.CreateFromFile(peStream, path, PEStreamOptions.PrefetchEntireImage, properties, documentation: null);
MetadataReference\MetadataReference.cs (3)
208MetadataImageKind.Module => ModuleMetadata.CreateFromStream(peStream, PEStreamOptions.PrefetchEntireImage), 209_ => AssemblyMetadata.CreateFromStream(peStream, PEStreamOptions.PrefetchEntireImage), 248PEStreamOptions.PrefetchEntireImage,
MetadataReference\ModuleMetadata.cs (4)
203/// <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/> is specified and the PE headers of the image are invalid. 206/// <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/> is specified and an error occurs while reading the stream. 220var prefetch = (options & (PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata)) != 0; 244if (peStream.Length == 0 && (options & PEStreamOptions.PrefetchEntireImage) != 0 && (options & PEStreamOptions.PrefetchMetadata) != 0)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\DecompiledSource\CSharpCodeDecompilerDecompilationService.cs (2)
45file = resolver.TryResolve(metadataReference, PEStreamOptions.PrefetchEntireImage); 48file = new PEFile(assemblyLocation, PEStreamOptions.PrefetchEntireImage);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommandLine\CommandLineRunner.cs (1)
193return createFromFileFunc(path, PEStreamOptions.PrefetchEntireImage, properties);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
91_createFromFileFunc = createFromfileFunc ?? ((path, properties) => Script.CreateFromFile(path, PEStreamOptions.PrefetchEntireImage, properties));
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptTestBase.cs (1)
35(path, properties) => CreateFromFile(path, PEStreamOptions.PrefetchEntireImage, properties));
Microsoft.CodeAnalysis.UnitTests (5)
MetadataReferences\ModuleMetadataTests.cs (5)
172Assert.Throws<BadImageFormatException>(() => ModuleMetadata.CreateFromStream(new MemoryStream(), PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)); 292[InlineData(PEStreamOptions.PrefetchEntireImage)] 294[InlineData(PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata)] 323[InlineData(PEStreamOptions.PrefetchEntireImage)] 325[InlineData(PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata)]
System.Reflection.Metadata (7)
System\Reflection\PortableExecutable\PEReader.cs (6)
114/// Unless <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/> is specified no data 118/// If <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/>, the <see cref="PEReader"/> 143/// Unless <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/> is specified no data 147/// If <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/>, the <see cref="PEReader"/> 180if ((options & (PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)) == 0) 188if ((options & PEStreamOptions.PrefetchEntireImage) != 0)
System\Reflection\PortableExecutable\PEStreamOptions.cs (1)
48return (options & ~(PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata | PEStreamOptions.IsLoadedImage)) == 0;
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
31options |= PEStreamOptions.PrefetchEntireImage;