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
CStreamReader.cs
Go to the documentation of this file.
1using System;
3using System.Text;
4
5namespace System.IO
6{
7 // Token: 0x02000571 RID: 1393
8 internal class CStreamReader : StreamReader
9 {
10 // Token: 0x060029F9 RID: 10745 RVA: 0x0005B420 File Offset: 0x00059620
11 public CStreamReader(Stream stream, Encoding encoding)
12 {
13 int num = 1;
14 if (num == 0)
15 {
16 }
17 base..ctor(stream, encoding);
18 if (num == 0)
19 {
20 }
21 throw new InvalidCastException();
22 }
23
24 // Token: 0x060029FA RID: 10746 RVA: 0x0005B444 File Offset: 0x00059644
25 public override int Peek()
26 {
27 return base.Peek();
28 }
29
30 // Token: 0x060029FB RID: 10747 RVA: 0x0005B45C File Offset: 0x0005965C
31 public override int Read()
32 {
33 /*
34An exception occurred when decompiling this method (060029FB)
35
36ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.IO.CStreamReader::Read()
37
38 ---> System.Exception: Basic block has to end with unconditional control flow.
39{
40 IL_0003:
41 stloc:ConsoleKeyInfo(var_1_0A, call:ConsoleKeyInfo(Console::ReadKey))
42}
43
44 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
45 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
46 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
47 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
48 --- End of inner exception stack trace ---
49 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
50 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
51*/;
52 }
53
54 // Token: 0x060029FC RID: 10748 RVA: 0x0005B478 File Offset: 0x00059678
55 public override int Read([In] [Out] char[] dest, int index, int count)
56 {
57 if (dest != null)
58 {
59 return this.driver.Read(dest, index, count);
60 }
61 return "index";
62 }
63
64 // Token: 0x060029FD RID: 10749 RVA: 0x0005B4A0 File Offset: 0x000596A0
65 public override string ReadLine()
66 {
68 return termInfoDriver.ReadLine();
69 }
70
71 // Token: 0x060029FE RID: 10750 RVA: 0x0005B4C0 File Offset: 0x000596C0
72 public override string ReadToEnd()
73 {
75 return termInfoDriver.ReadToEnd();
76 }
77
78 // Token: 0x04001689 RID: 5769
80 }
81}
class f__AnonymousType0<< Count > j__TPar
override int Read([In][Out] char[] dest, int index, int count)
CStreamReader(Stream stream, Encoding encoding)
override string ReadToEnd()
override string ReadLine()
int Read([In][Out] char[] dest, int index, int count)