1 type derived from MetadataStringDecoder
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
3986private sealed class StringTableDecoder : MetadataStringDecoder
1 instantiation of MetadataStringDecoder
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataStringDecoder.cs (1)
35public static MetadataStringDecoder DefaultUTF8 { get; } = new MetadataStringDecoder(Encoding.UTF8);
25 references to MetadataStringDecoder
Microsoft.CodeAnalysis.Workspaces (3)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (3)
65return MetadataStringDecoder.DefaultUTF8.GetString( 643simpleNames.Add(MetadataStringDecoder.DefaultUTF8.GetString( 649simpleNames.Add(MetadataStringDecoder.DefaultUTF8.GetString(
System.Reflection.Metadata (22)
System\Reflection\Internal\Utilities\EncodingHelper.netcoreapp.cs (2)
17public static string DecodeUtf8(byte* bytes, int byteCount, byte[]? prefix, MetadataStringDecoder utf8Decoder) 34private static string DecodeUtf8Prefixed(byte* bytes, int byteCount, byte[] prefix, MetadataStringDecoder utf8Decoder)
System\Reflection\Internal\Utilities\MemoryBlock.cs (3)
295internal string PeekUtf8NullTerminated(int offset, byte[]? prefix, MetadataStringDecoder utf8Decoder, out int numberOfBytesRead, char terminator = '\0') 348internal bool Utf8NullTerminatedEquals(int offset, string text, MetadataStringDecoder utf8Decoder, char terminator, bool ignoreCase) 362internal bool Utf8NullTerminatedStartsWith(int offset, string text, MetadataStringDecoder utf8Decoder, char terminator, bool ignoreCase)
System\Reflection\Metadata\BlobReader.cs (1)
443string value = _block.PeekUtf8NullTerminated(this.Offset, null, MetadataStringDecoder.DefaultUTF8, out bytesRead, '\0');
System\Reflection\Metadata\Internal\StringHeap.cs (5)
147internal string GetString(StringHandle handle, MetadataStringDecoder utf8Decoder) 162private string GetNonVirtualString(StringHandle handle, MetadataStringDecoder utf8Decoder, byte[]? prefixOpt) 192private string GetVirtualHandleString(StringHandle handle, MetadataStringDecoder utf8Decoder) 247internal bool Equals(StringHandle handle, string value, MetadataStringDecoder utf8Decoder, bool ignoreCase) 266internal bool StartsWith(StringHandle handle, string value, MetadataStringDecoder utf8Decoder, bool ignoreCase)
System\Reflection\Metadata\MetadataReader.cs (5)
62/// Use <see cref="PEReaderExtensions.GetMetadataReader(PortableExecutable.PEReader, MetadataReaderOptions, MetadataStringDecoder)"/> to obtain 70public unsafe MetadataReader(byte* metadata, int length, MetadataReaderOptions options, MetadataStringDecoder? utf8Decoder) 75internal unsafe MetadataReader(byte* metadata, int length, MetadataReaderOptions options, MetadataStringDecoder? utf8Decoder, object? memoryOwner) 89utf8Decoder ??= MetadataStringDecoder.DefaultUTF8; 1023public MetadataStringDecoder UTF8Decoder { get; }
System\Reflection\Metadata\MetadataReaderProvider.cs (3)
243public unsafe MetadataReader GetMetadataReader(MetadataReaderOptions options = MetadataReaderOptions.Default, MetadataStringDecoder? utf8Decoder = null) 272private static bool CanReuseReader(MetadataReader? reader, MetadataReaderOptions options, MetadataStringDecoder? utf8DecoderOpt) 274return reader != null && reader.Options == options && ReferenceEquals(reader.UTF8Decoder, utf8DecoderOpt ?? MetadataStringDecoder.DefaultUTF8);
System\Reflection\Metadata\MetadataStringDecoder.cs (2)
35public static MetadataStringDecoder DefaultUTF8 { get; } = new MetadataStringDecoder(Encoding.UTF8); 38/// Creates a <see cref="MetadataStringDecoder"/> for the given encoding.
System\Reflection\Metadata\PEReaderExtensions.cs (1)
79public static unsafe MetadataReader GetMetadataReader(this PEReader peReader, MetadataReaderOptions options, MetadataStringDecoder? utf8Decoder)