24 references to PrefetchMetadata
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorReferenceManager.cs (1)
77
var moduleMetadata = ModuleMetadata.CreateFromStream(stream, PEStreamOptions.
PrefetchMetadata
);
Microsoft.CodeAnalysis (4)
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.
220
var prefetch = (options & (PEStreamOptions.PrefetchEntireImage | PEStreamOptions.
PrefetchMetadata
)) != 0;
244
if (peStream.Length == 0 && (options & PEStreamOptions.PrefetchEntireImage) != 0 && (options & PEStreamOptions.
PrefetchMetadata
) != 0)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\DecompiledSource\AssemblyResolver.cs (3)
135
var result = TryResolve(reference, PEStreamOptions.
PrefetchMetadata
);
143
return new PEFile(reference.Display, PEStreamOptions.
PrefetchMetadata
);
166
return new PEFile(moduleFileName, PEStreamOptions.
PrefetchMetadata
);
Microsoft.CodeAnalysis.UnitTests (6)
MetadataReferences\ModuleMetadataTests.cs (6)
171
Assert.Throws<BadImageFormatException>(() => ModuleMetadata.CreateFromStream(new MemoryStream(), PEStreamOptions.
PrefetchMetadata
));
172
Assert.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)
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"/>
126
/// <exception cref="BadImageFormatException"><see cref="PEStreamOptions.
PrefetchMetadata
"/> is specified and the PE headers of the image are invalid.</exception>
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"/>
154
/// <exception cref="BadImageFormatException"><see cref="PEStreamOptions.
PrefetchMetadata
"/> is specified and the PE headers of the image are invalid.</exception>
180
if ((options & (PEStreamOptions.
PrefetchMetadata
| PEStreamOptions.PrefetchEntireImage)) == 0)
195
if ((options & PEStreamOptions.
PrefetchMetadata
) != 0)
System\Reflection\PortableExecutable\PEStreamOptions.cs (1)
48
return (options & ~(PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchEntireImage | PEStreamOptions.
PrefetchMetadata
| PEStreamOptions.IsLoadedImage)) == 0;
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
28
var options = PEStreamOptions.
PrefetchMetadata
;