1 write to _encoding
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
34_encoding = encoding;
14 references to _encoding
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (14)
35_fallback = _encoding.EncoderFallback; 73Debug.Assert(_encoding is not null); 74return _encoding.GetByteCount(chars, count, this); 116Debug.Assert(_encoding is not null); 117return _encoding.GetBytes(chars, charCount, bytes, byteCount, this); 170Debug.Assert(_encoding is not null); 171bytesUsed = _encoding.GetBytes(chars, charCount, bytes, byteCount, this); 214Debug.Assert(_encoding is not null); 215return _encoding; 285Debug.Assert(_encoding is not null); 286if (_encoding.TryGetByteCount(rune, out int byteCount)) 359Debug.Assert(_encoding is not null); 360switch (_encoding.EncodeRune(rune, bytes, out bytesWritten)) 366_encoding.ThrowBytesOverflow(this, nothingEncoded: true); // will throw