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