3 types derived from DecoderNLS
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1808
private sealed class Decoder :
DecoderNLS
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1157
private sealed class UTF32Decoder :
DecoderNLS
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
767
private sealed class Decoder :
DecoderNLS
3 instantiations of DecoderNLS
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
877
public override Decoder GetDecoder() => new
DecoderNLS
(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
631
return new
DecoderNLS
(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
756
return new
DecoderNLS
(this);
31 references to DecoderNLS
System.Private.CoreLib (31)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
345
if (_decoder is not
DecoderNLS
decoder || decoder.HasState)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
671
private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength,
DecoderNLS
? decoder, bool throwForDestinationOverflow = true)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (2)
65
internal
DecoderNLS
? _decoder;
83
internal static DecoderFallbackBuffer CreateAndInitialize(Encoding encoding,
DecoderNLS
? decoder, int originalByteCount)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (3)
1129
internal void ThrowCharsOverflow(
DecoderNLS
? decoder, bool nothingDecoded)
1261
private readonly
DecoderNLS
? _decoder;
1267
internal unsafe EncodingCharBuffer(Encoding enc,
DecoderNLS
? decoder, char* charStart, int charCount,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (17)
713
/// Entry point from <see cref="
DecoderNLS
.GetCharCount"/>.
715
internal virtual unsafe int GetCharCount(byte* pBytes, int byteCount,
DecoderNLS
? decoder)
808
/// with no associated <see cref="
DecoderNLS
"/>. The first two arguments are based on the
836
/// input data, with an associated <see cref="
DecoderNLS
"/>. The first two arguments are
840
/// <see cref="
DecoderNLS
"/> instance, then to invoke the <see cref="GetCharCountFast"/> virtual method
841
/// after data has been drained, then to call <see cref="GetCharCountWithFallback(ReadOnlySpan{byte}, int,
DecoderNLS
)"/>.
850
private unsafe int GetCharCountWithFallback(byte* pOriginalBytes, int originalByteCount, int bytesConsumedSoFar,
DecoderNLS
decoder)
911
private unsafe int GetCharCountWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength,
DecoderNLS
? decoder)
993
/// Entry point from <see cref="
DecoderNLS
.GetChars"/> and <see cref="
DecoderNLS
.Convert"/>.
995
internal virtual unsafe int GetChars(byte* pBytes, int byteCount, char* pChars, int charCount,
DecoderNLS
? decoder)
1072
/// Transcodes bytes to chars, with no associated <see cref="
DecoderNLS
"/>. The first four arguments are
1104
/// Transcodes bytes to chars, with an associated <see cref="
DecoderNLS
"/>. The first four arguments are
1108
/// <see cref="
DecoderNLS
"/> instance, then to invoke the <see cref="GetCharsFast"/> virtual method
1116
/// too small to contain the entirety of the transcoded data and the <see cref="
DecoderNLS
"/> instance disallows
1119
private protected unsafe int GetCharsWithFallback(byte* pOriginalBytes, int originalByteCount, char* pOriginalChars, int originalCharCount, int bytesConsumedSoFar, int charsWrittenSoFar,
DecoderNLS
decoder)
1188
private protected virtual unsafe int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength,
DecoderNLS
? decoder, bool throwForDestinationOverflow = true)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
985
internal sealed override unsafe int GetCharCount(byte* bytes, int count,
DecoderNLS
? baseDecoder)
1300
byte* bytes, int byteCount, char* chars, int charCount,
DecoderNLS
? baseDecoder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
686
internal override unsafe int GetCharCount(byte* bytes, int count,
DecoderNLS
? baseDecoder)
829
char* chars, int charCount,
DecoderNLS
? baseDecoder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
538
internal sealed override unsafe int GetCharCount(byte* bytes, int count,
DecoderNLS
? baseDecoder)
548
byte* bytes, int byteCount, char* chars, int charCount,
DecoderNLS
? baseDecoder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
634
private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength,
DecoderNLS
? decoder, bool throwForDestinationOverflow = true)