27 references to MetadataReaderOptions
Microsoft.AspNetCore.App.UnitTests (7)
PackageTests.cs (2)
98
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
128
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
SharedFxTests.cs (2)
189
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
236
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
TargetingPackTests.cs (3)
86
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
120
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
202
var reader = peReader.GetMetadataReader(
MetadataReaderOptions
.Default);
Microsoft.CodeAnalysis (2)
MetadataReader\PEModule.cs (2)
243
newReader = new MetadataReader((byte*)_metadataPointerOpt, _metadataSizeOpt,
MetadataReaderOptions
.ApplyWindowsRuntimeProjections, StringTableDecoder.Instance);
265
newReader = _peReaderOpt.GetMetadataReader(
MetadataReaderOptions
.ApplyWindowsRuntimeProjections, StringTableDecoder.Instance);
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\PinnedMetadata.cs (1)
20
this.Reader = new MetadataReader((byte*)Pointer, this.Size,
MetadataReaderOptions
.None, null);
System.Reflection.Metadata (17)
System\Reflection\Metadata\MetadataReader.cs (9)
28
private readonly
MetadataReaderOptions
_options;
40
: this(metadata, length,
MetadataReaderOptions
.Default, utf8Decoder: null, memoryOwner: null)
49
/// Use <see cref="PEReaderExtensions.GetMetadataReader(PortableExecutable.PEReader,
MetadataReaderOptions
)"/> to obtain
52
public unsafe MetadataReader(byte* metadata, int length,
MetadataReaderOptions
options)
62
/// Use <see cref="PEReaderExtensions.GetMetadataReader(PortableExecutable.PEReader,
MetadataReaderOptions
, MetadataStringDecoder)"/> to obtain
70
public unsafe MetadataReader(byte* metadata, int length,
MetadataReaderOptions
options, MetadataStringDecoder? utf8Decoder)
75
internal unsafe MetadataReader(byte* metadata, int length,
MetadataReaderOptions
options, MetadataStringDecoder? utf8Decoder, object? memoryOwner)
213
if ((_options &
MetadataReaderOptions
.ApplyWindowsRuntimeProjections) == 0)
998
public
MetadataReaderOptions
Options => _options;
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
86
MetadataReader mdReader = peReader.GetMetadataReader(
MetadataReaderOptions
.None);
System\Reflection\Metadata\MetadataReaderOptions.cs (1)
16
/// via an overload that does not take a <see cref="
MetadataReaderOptions
"/>
System\Reflection\Metadata\MetadataReaderProvider.cs (3)
243
public unsafe MetadataReader GetMetadataReader(
MetadataReaderOptions
options =
MetadataReaderOptions
.Default, MetadataStringDecoder? utf8Decoder = null)
272
private static bool CanReuseReader(MetadataReader? reader,
MetadataReaderOptions
options, MetadataStringDecoder? utf8DecoderOpt)
System\Reflection\Metadata\PEReaderExtensions.cs (3)
52
return GetMetadataReader(peReader,
MetadataReaderOptions
.ApplyWindowsRuntimeProjections, null);
64
public static MetadataReader GetMetadataReader(this PEReader peReader,
MetadataReaderOptions
options)
79
public static unsafe MetadataReader GetMetadataReader(this PEReader peReader,
MetadataReaderOptions
options, MetadataStringDecoder? utf8Decoder)