1 write to _preamble
mscorlib (1)
system\io\streamreader.cs (1)
255_preamble = encoding.GetPreamble();
11 references to _preamble
mscorlib (11)
system\io\streamreader.cs (11)
256_checkPreamble = (_preamble.Length > 0); 540Contract.Assert(bytePos <= _preamble.Length, "_compressPreamble was called with the current bytePos greater than the preamble buffer length. Are two threads using this StreamReader at the same time?"); 541int len = (byteLen >= (_preamble.Length))? (_preamble.Length - bytePos) : (byteLen - bytePos); 544if (byteBuffer[bytePos] != _preamble[bytePos]) { 551Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 554if (bytePos == _preamble.Length) { 556CompressBuffer(_preamble.Length); 574Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 659Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1149get { return _preamble; }