1 type derived from EncoderNLS
System.Private.CoreLib (1)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
880public override Encoder GetEncoder() => new EncoderNLS(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
636return new EncoderNLS(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1717return new EncoderNLS(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1065return new EncoderNLS(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
762return new EncoderNLS(this);
33 references to EncoderNLS
System.Private.CoreLib (33)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
382private protected sealed override int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (2)
222/// 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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (18)
120/// Entry point from <see cref="EncoderNLS.GetByteCount"/>. 122internal virtual unsafe int GetByteCount(char* pChars, int charCount, EncoderNLS? encoder) 214/// with no associated <see cref="EncoderNLS"/>. The first two arguments are based on the 242/// input data, with an associated <see cref="EncoderNLS"/>. The first two arguments are 246/// <see cref="EncoderNLS"/> instance, then to invoke the <see cref="GetByteCountFast"/> virtual method 247/// after data has been drained, then to call <see cref="GetByteCountWithFallback(ReadOnlySpan{char}, int, EncoderNLS)"/>. 256private unsafe int GetByteCountWithFallback(char* pOriginalChars, int originalCharCount, int charsConsumedSoFar, EncoderNLS encoder) 311private protected virtual unsafe int GetByteCountWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, EncoderNLS? encoder) 397/// Entry point from <see cref="EncoderNLS.GetBytes"/> and <see cref="EncoderNLS.Convert"/>. 399internal virtual unsafe int GetBytes(char* pChars, int charCount, byte* pBytes, int byteCount, EncoderNLS? encoder) 476/// Transcodes chars to bytes, with no associated <see cref="EncoderNLS"/>. The first four arguments are 508/// Transcodes chars to bytes, with an associated <see cref="EncoderNLS"/>. The first four arguments are 512/// <see cref="EncoderNLS"/> instance, then to invoke the <see cref="GetBytesFast"/> virtual method 513/// after data has been drained, then to call <see cref="GetBytesWithFallback(ReadOnlySpan{char}, int, Span{byte}, int, EncoderNLS, bool)"/>. 520/// too small to contain the entirety of the transcoded data and the <see cref="EncoderNLS"/> instance disallows 523private unsafe int GetBytesWithFallback(char* pOriginalChars, int originalCharCount, byte* pOriginalBytes, int originalByteCount, int charsConsumedSoFar, int bytesWrittenSoFar, EncoderNLS encoder) 587private protected virtual unsafe int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true)
src\runtime\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\runtime\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\runtime\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)