6 writes to _encoding
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (6)
184
_encoding
= encoding ??= Encoding.UTF8;
510
_encoding
= Encoding.BigEndianUnicode;
519
_encoding
= Encoding.Unicode;
525
_encoding
= Encoding.UTF32;
533
_encoding
= Encoding.UTF8;
540
_encoding
= new UTF32Encoding(bigEndian: true, byteOrderMark: true);
10 references to _encoding
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (10)
299
public virtual Encoding CurrentEncoding =>
_encoding
;
319
if (
_encoding
!= null)
321
_decoder =
_encoding
.GetDecoder();
553
_decoder =
_encoding
.GetDecoder();
554
int newMaxCharsPerBuffer =
_encoding
.GetMaxCharCount(byteBuffer.Length);
579
ReadOnlySpan<byte> preamble =
_encoding
.Preamble;
626
Debug.Assert(_bytePos <=
_encoding
.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
730
Debug.Assert(_bytePos <=
_encoding
.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
1176
Debug.Assert(_bytePos <=
_encoding
.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
1392
Debug.Assert(_bytePos <=
_encoding
.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");