22 references to MetadataStreamOptions
Microsoft.CodeAnalysis.Features (2)
Emit\CompilationOutputs.cs (2)
62prefetch ? MetadataStreamOptions.PrefetchMetadata : MetadataStreamOptions.Default,
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
600using (var provider = MetadataReaderProvider.FromPortablePdbStream(portablePdbStreamOpt, MetadataStreamOptions.LeaveOpen))
System.Reflection.Metadata (19)
System\Reflection\Metadata\MetadataReaderProvider.cs (16)
122/// Unless <see cref="MetadataStreamOptions.LeaveOpen"/> is specified, ownership of the stream is transferred to the <see cref="MetadataReaderProvider"/> 125/// Unless <see cref="MetadataStreamOptions.PrefetchMetadata"/> is specified no data 129/// If <see cref="MetadataStreamOptions.PrefetchMetadata"/>, the <see cref="MetadataReaderProvider"/> 130/// will have read all of the data requested during construction. As such, if <see cref="MetadataStreamOptions.LeaveOpen"/> is also 137public static MetadataReaderProvider FromPortablePdbStream(Stream stream, MetadataStreamOptions options = MetadataStreamOptions.Default, int size = 0) => FromMetadataStream(stream, options, size); 147/// Unless <see cref="MetadataStreamOptions.LeaveOpen"/> is specified, ownership of the stream is transferred to the <see cref="MetadataReaderProvider"/> 150/// Unless <see cref="MetadataStreamOptions.PrefetchMetadata"/> is specified no data 154/// If <see cref="MetadataStreamOptions.PrefetchMetadata"/>, the <see cref="MetadataReaderProvider"/> 155/// will have read all of the data requested during construction. As such, if <see cref="MetadataStreamOptions.LeaveOpen"/> is also 162/// <exception cref="IOException">Error reading from the stream (only when <see cref="MetadataStreamOptions.PrefetchMetadata"/> is specified).</exception> 163public static MetadataReaderProvider FromMetadataStream(Stream stream, MetadataStreamOptions options = MetadataStreamOptions.Default, int size = 0) 187if ((options & MetadataStreamOptions.PrefetchMetadata) == 0) 189result = new MetadataReaderProvider(new StreamMemoryBlockProvider(stream, start, actualSize, (options & MetadataStreamOptions.LeaveOpen) != 0)); 202if (closeStream && (options & MetadataStreamOptions.LeaveOpen) == 0)
System\Reflection\Metadata\MetadataStreamOptions.cs (3)
31public static bool IsValid(this MetadataStreamOptions options) 33return (options & ~(MetadataStreamOptions.LeaveOpen | MetadataStreamOptions.PrefetchMetadata)) == 0;