terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ReadBuffer() [1/2]

virtual int System.IO.StreamReader.ReadBuffer ( )
inlinepackagevirtualinherited

Reimplemented in System.IO.StreamReader.NullStreamReader.

Definition at line 383 of file StreamReader.cs.

384 {
385 int charLen;
386 do
387 {
388 if (this._checkPreamble)
389 {
390 }
391 Stream stream = this._stream;
392 byte[] byteBuffer = this._byteBuffer;
393 int bytePos = this._bytePos;
394 int byteLen = this._byteLen;
395 if (stream == null)
396 {
397 goto IL_00B3;
398 }
399 this._byteLen = stream;
400 this._byteLen = stream;
401 if (stream == null)
402 {
403 goto IL_00DB;
404 }
405 byte[] byteBuffer2 = this._byteBuffer;
406 this._isBlocked = byteBuffer2 != null;
407 bool flag = this.IsPreamble();
408 if (this._charLen == 0)
409 {
410 break;
411 }
412 if (this._detectEncoding)
413 {
414 int byteLen2 = this._byteLen;
415 this.DetectEncoding();
416 }
417 Decoder decoder = this._decoder;
418 byte[] byteBuffer3 = this._byteBuffer;
419 charLen = this._charLen;
420 int bytePos2 = this._bytePos;
421 char[] charBuffer = this._charBuffer;
423 }
424 while (charLen != 0);
425 bool checkPreamble = this._checkPreamble;
426 IL_00B3:
427 int charLen2 = this._charLen;
429 byte[] byteBuffer4 = this._byteBuffer;
430 char[] charBuffer2 = this._charBuffer;
432 IL_00DB:
433 return this._charLen;
434 }
class f__AnonymousType0<< Count > j__TPar

References System.IO.StreamReader._byteBuffer, System.IO.StreamReader._byteLen, System.IO.StreamReader._bytePos, System.IO.StreamReader._charBuffer, System.IO.StreamReader._charLen, System.IO.StreamReader._checkPreamble, System.IO.StreamReader._decoder, System.IO.StreamReader._detectEncoding, System.IO.StreamReader._stream, System.IO.StreamReader.DetectEncoding(), System.IO.StreamReader.IsPreamble(), and j__TPar.