26 references to PrefetchEntireImage
Microsoft.CodeAnalysis (8)
CommandLine\CommonCompiler.cs (1)
214
return MetadataReference.CreateFromFile(peStream, path, PEStreamOptions.
PrefetchEntireImage
, properties, documentation: null);
MetadataReference\MetadataReference.cs (3)
208
MetadataImageKind.Module => ModuleMetadata.CreateFromStream(peStream, PEStreamOptions.
PrefetchEntireImage
),
209
_ => AssemblyMetadata.CreateFromStream(peStream, PEStreamOptions.
PrefetchEntireImage
),
248
PEStreamOptions.
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.
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 (2)
Features\DecompiledSource\CSharpCodeDecompilerDecompilationService.cs (2)
45
file = resolver.TryResolve(metadataReference, PEStreamOptions.
PrefetchEntireImage
);
48
file = new PEFile(assemblyLocation, PEStreamOptions.
PrefetchEntireImage
);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommandLine\CommandLineRunner.cs (1)
193
return 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)
172
Assert.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"/>
180
if ((options & (PEStreamOptions.PrefetchMetadata | PEStreamOptions.
PrefetchEntireImage
)) == 0)
188
if ((options & PEStreamOptions.
PrefetchEntireImage
) != 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)
31
options |= PEStreamOptions.
PrefetchEntireImage
;