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

◆ ReadString()

virtual string System.IO.BinaryReader.ReadString ( )
inlinevirtual

Definition at line 432 of file BinaryReader.cs.

433 {
434 if (this.m_stream != null)
435 {
436 int num = this.Read7BitEncodedInt();
437 if (num == 0)
438 {
439 char[] charBuffer = this.m_charBuffer;
440 string text;
441 return text;
442 }
443 if (this.m_charBytes == null)
444 {
445 }
446 if (this.m_charBuffer == null)
447 {
448 int maxCharsSize = this.m_maxCharsSize;
449 }
450 long num2 = 0L;
451 long num3 = 0L;
452 Stream stream = this.m_stream;
453 byte[] charBytes = this.m_charBytes;
454 if (stream != null)
455 {
456 Decoder decoder = this.m_decoder;
457 byte[] charBytes2 = this.m_charBytes;
458 char[] charBuffer2 = this.m_charBuffer;
459 if (num3 == 0L)
460 {
461 }
462 StringBuilder stringBuilder;
463 if (num2 == 0L)
464 {
465 stringBuilder = StringBuilderCache.Acquire(num);
466 }
467 char[] charBuffer3 = this.m_charBuffer;
468 return StringBuilderCache.GetStringAndRelease(stringBuilder);
469 }
470 __Error.EndOfFile();
471 }
472 __Error.FileNotOpen();
473 throw new ArrayTypeMismatchException();
474 }
class f__AnonymousType0<< Count > j__TPar
static string GetStringAndRelease(StringBuilder sb)
static StringBuilder Acquire(int capacity=16)

References System.Text.StringBuilderCache.Acquire(), System.IO.__Error.EndOfFile(), System.IO.__Error.FileNotOpen(), System.Text.StringBuilderCache.GetStringAndRelease(), j__TPar, System.L, System.IO.BinaryReader.m_charBuffer, System.IO.BinaryReader.m_charBytes, System.IO.BinaryReader.m_decoder, System.IO.BinaryReader.m_maxCharsSize, System.IO.BinaryReader.m_stream, System.IO.BinaryReader.Read7BitEncodedInt(), and System.text.