23 references to PrefetchMetadata
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorReferenceManager.cs (1)
77var moduleMetadata = ModuleMetadata.CreateFromStream(stream, PEStreamOptions.PrefetchMetadata);
Microsoft.CodeAnalysis (3)
MetadataReference\ModuleMetadata.cs (3)
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;
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\DecompiledSource\AssemblyResolver.cs (3)
135var result = TryResolve(reference, PEStreamOptions.PrefetchMetadata); 143return new PEFile(reference.Display, PEStreamOptions.PrefetchMetadata); 166return new PEFile(moduleFileName, PEStreamOptions.PrefetchMetadata);
Microsoft.CodeAnalysis.UnitTests (6)
MetadataReferences\ModuleMetadataTests.cs (6)
171Assert.Throws<BadImageFormatException>(() => ModuleMetadata.CreateFromStream(new MemoryStream(), PEStreamOptions.PrefetchMetadata)); 172Assert.Throws<BadImageFormatException>(() => ModuleMetadata.CreateFromStream(new MemoryStream(), PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)); 293[InlineData(PEStreamOptions.PrefetchMetadata)] 294[InlineData(PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata)] 324[InlineData(PEStreamOptions.PrefetchMetadata)] 325[InlineData(PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata)]
System.Reflection.Metadata (9)
System\Reflection\PortableExecutable\PEReader.cs (8)
115/// Unless <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/> is specified no data 119/// If <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/>, the <see cref="PEReader"/> 127/// <exception cref="BadImageFormatException"><see cref="PEStreamOptions.PrefetchMetadata"/> is specified and the PE headers of the image are invalid.</exception> 144/// Unless <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/> is specified no data 148/// If <see cref="PEStreamOptions.PrefetchMetadata"/> or <see cref="PEStreamOptions.PrefetchEntireImage"/>, the <see cref="PEReader"/> 155/// <exception cref="BadImageFormatException"><see cref="PEStreamOptions.PrefetchMetadata"/> is specified and the PE headers of the image are invalid.</exception> 181if ((options & (PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)) == 0) 196if ((options & PEStreamOptions.PrefetchMetadata) != 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)
28var options = PEStreamOptions.PrefetchMetadata;