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