1 type derived from EncoderNLS
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
798
private sealed class Encoder :
EncoderNLS
5 instantiations of EncoderNLS
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
879
public override Encoder GetEncoder() => new
EncoderNLS
(this);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
635
return new
EncoderNLS
(this);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1717
return new
EncoderNLS
(this);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1065
return new
EncoderNLS
(this);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
762
return new
EncoderNLS
(this);
33 references to EncoderNLS
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
381
private 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)
66
internal
EncoderNLS
? encoder; // TODO: MAKE ME PRIVATE
87
internal unsafe void InternalInitialize(char* charStart, char* charEnd,
EncoderNLS
? encoder, bool setEncoder)
98
internal 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)
1101
internal void ThrowBytesOverflow(
EncoderNLS
? encoder, bool nothingEncoded)
1411
private readonly
EncoderNLS
? _encoder;
1414
internal 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"/>.
121
internal 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
)"/>.
255
private unsafe int GetByteCountWithFallback(char* pOriginalChars, int originalCharCount, int charsConsumedSoFar,
EncoderNLS
encoder)
310
private 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"/>.
398
internal 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
522
private unsafe int GetBytesWithFallback(char* pOriginalChars, int originalCharCount, byte* pOriginalBytes, int originalByteCount, int charsConsumedSoFar, int bytesWrittenSoFar,
EncoderNLS
encoder)
586
private 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)
345
internal sealed override unsafe int GetByteCount(char* chars, int count,
EncoderNLS
? encoder)
634
char* chars, int charCount, byte* bytes, int byteCount,
EncoderNLS
? encoder)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
353
internal override unsafe int GetByteCount(char* chars, int count,
EncoderNLS
? encoder)
485
byte* bytes, int byteCount,
EncoderNLS
? encoder)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
389
internal sealed override unsafe int GetByteCount(char* chars, int count,
EncoderNLS
? baseEncoder)
399
char* chars, int charCount, byte* bytes, int byteCount,
EncoderNLS
? baseEncoder)