1 write to _encoding
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
33
_encoding
= encoding;
14 references to _encoding
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (14)
34
_fallback =
_encoding
.EncoderFallback;
72
Debug.Assert(
_encoding
is not null);
73
return
_encoding
.GetByteCount(chars, count, this);
115
Debug.Assert(
_encoding
is not null);
116
return
_encoding
.GetBytes(chars, charCount, bytes, byteCount, this);
169
Debug.Assert(
_encoding
is not null);
170
bytesUsed =
_encoding
.GetBytes(chars, charCount, bytes, byteCount, this);
213
Debug.Assert(
_encoding
is not null);
214
return
_encoding
;
284
Debug.Assert(
_encoding
is not null);
285
if (
_encoding
.TryGetByteCount(rune, out int byteCount))
358
Debug.Assert(
_encoding
is not null);
359
switch (
_encoding
.EncodeRune(rune, bytes, out bytesWritten))
365
_encoding
.ThrowBytesOverflow(this, nothingEncoded: true); // will throw