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; 72Debug.Assert(_encoding is not null); 73return _encoding.GetByteCount(chars, count, this); 115Debug.Assert(_encoding is not null); 116return _encoding.GetBytes(chars, charCount, bytes, byteCount, this); 169Debug.Assert(_encoding is not null); 170bytesUsed = _encoding.GetBytes(chars, charCount, bytes, byteCount, this); 213Debug.Assert(_encoding is not null); 214return _encoding; 284Debug.Assert(_encoding is not null); 285if (_encoding.TryGetByteCount(rune, out int byteCount)) 358Debug.Assert(_encoding is not null); 359switch (_encoding.EncodeRune(rune, bytes, out bytesWritten)) 365_encoding.ThrowBytesOverflow(this, nothingEncoded: true); // will throw