1 type derived from EncoderNLS
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
798private sealed class Encoder : EncoderNLS
5 instantiations of EncoderNLS
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
879public override Encoder GetEncoder() => new EncoderNLS(this);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
635return new EncoderNLS(this);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1717return new EncoderNLS(this);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1065return new EncoderNLS(this);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
762return new EncoderNLS(this);
33 references to EncoderNLS
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
381private protected sealed override int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (3)
66internal EncoderNLS? encoder; // TODO: MAKE ME PRIVATE 87internal unsafe void InternalInitialize(char* charStart, char* charEnd, EncoderNLS? encoder, bool setEncoder) 98internal static EncoderFallbackBuffer CreateAndInitialize(Encoding encoding, EncoderNLS? encoder, int originalCharCount)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (2)
221/// States whether a call to <see cref="Encoding.GetBytes(char*, int, byte*, int, EncoderNLS)"/> must first drain data on this <see cref="EncoderNLS"/> instance.
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (3)
1101internal void ThrowBytesOverflow(EncoderNLS? encoder, bool nothingEncoded) 1411private readonly EncoderNLS? _encoder; 1414internal unsafe EncodingByteBuffer(Encoding inEncoding, EncoderNLS? inEncoder,
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (18)
119/// Entry point from <see cref="EncoderNLS.GetByteCount"/>. 121internal virtual unsafe int GetByteCount(char* pChars, int charCount, EncoderNLS? encoder) 213/// with no associated <see cref="EncoderNLS"/>. The first two arguments are based on the 241/// input data, with an associated <see cref="EncoderNLS"/>. The first two arguments are 245/// <see cref="EncoderNLS"/> instance, then to invoke the <see cref="GetByteCountFast"/> virtual method 246/// after data has been drained, then to call <see cref="GetByteCountWithFallback(ReadOnlySpan{char}, int, EncoderNLS)"/>. 255private unsafe int GetByteCountWithFallback(char* pOriginalChars, int originalCharCount, int charsConsumedSoFar, EncoderNLS encoder) 310private protected virtual unsafe int GetByteCountWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, EncoderNLS? encoder) 396/// Entry point from <see cref="EncoderNLS.GetBytes"/> and <see cref="EncoderNLS.Convert"/>. 398internal virtual unsafe int GetBytes(char* pChars, int charCount, byte* pBytes, int byteCount, EncoderNLS? encoder) 475/// Transcodes chars to bytes, with no associated <see cref="EncoderNLS"/>. The first four arguments are 507/// Transcodes chars to bytes, with an associated <see cref="EncoderNLS"/>. The first four arguments are 511/// <see cref="EncoderNLS"/> instance, then to invoke the <see cref="GetBytesFast"/> virtual method 512/// after data has been drained, then to call <see cref="GetBytesWithFallback(ReadOnlySpan{char}, int, Span{byte}, int, EncoderNLS, bool)"/>. 519/// too small to contain the entirety of the transcoded data and the <see cref="EncoderNLS"/> instance disallows 522private unsafe int GetBytesWithFallback(char* pOriginalChars, int originalCharCount, byte* pOriginalBytes, int originalByteCount, int charsConsumedSoFar, int bytesWrittenSoFar, EncoderNLS encoder) 586private protected virtual unsafe int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true)
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
345internal sealed override unsafe int GetByteCount(char* chars, int count, EncoderNLS? encoder) 634char* chars, int charCount, byte* bytes, int byteCount, EncoderNLS? encoder)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
353internal override unsafe int GetByteCount(char* chars, int count, EncoderNLS? encoder) 485byte* bytes, int byteCount, EncoderNLS? encoder)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
389internal sealed override unsafe int GetByteCount(char* chars, int count, EncoderNLS? baseEncoder) 399char* chars, int charCount, byte* bytes, int byteCount, EncoderNLS? baseEncoder)