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);
540
Contract.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?");
541
int len = (byteLen >= (
_preamble
.Length))? (
_preamble
.Length - bytePos) : (byteLen - bytePos);
544
if (byteBuffer[bytePos] !=
_preamble
[bytePos]) {
551
Contract.Assert(bytePos <=
_preamble
.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
554
if (bytePos ==
_preamble
.Length) {
556
CompressBuffer(
_preamble
.Length);
574
Contract.Assert(bytePos <=
_preamble
.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
659
Contract.Assert(bytePos <=
_preamble
.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
1149
get { return
_preamble
; }