3 types derived from DecoderNLS
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1808
private sealed class Decoder :
DecoderNLS
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1157
private sealed class UTF32Decoder :
DecoderNLS
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\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
876
public override Decoder GetDecoder() => new
DecoderNLS
(this);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
630
return new
DecoderNLS
(this);
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\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
345
if (_decoder is not
DecoderNLS
decoder || decoder.HasState)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
670
private 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)
65
internal
DecoderNLS
? _decoder;
83
internal static DecoderFallbackBuffer CreateAndInitialize(Encoding encoding,
DecoderNLS
? decoder, int originalByteCount)
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\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (17)
712
/// Entry point from <see cref="
DecoderNLS
.GetCharCount"/>.
714
internal 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
)"/>.
849
private unsafe int GetCharCountWithFallback(byte* pOriginalBytes, int originalByteCount, int bytesConsumedSoFar,
DecoderNLS
decoder)
910
private unsafe int GetCharCountWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength,
DecoderNLS
? decoder)
992
/// Entry point from <see cref="
DecoderNLS
.GetChars"/> and <see cref="
DecoderNLS
.Convert"/>.
994
internal 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
1118
private protected unsafe int GetCharsWithFallback(byte* pOriginalBytes, int originalByteCount, char* pOriginalChars, int originalCharCount, int bytesConsumedSoFar, int charsWrittenSoFar,
DecoderNLS
decoder)
1187
private 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)
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\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\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\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)