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
ByteStack.cs
Go to the documentation of this file.
1using System;
2
3namespace System.Xml
4{
5 // Token: 0x0200000B RID: 11
6 internal class ByteStack
7 {
8 // Token: 0x0600001A RID: 26 RVA: 0x000023D4 File Offset: 0x000005D4
14
15 // Token: 0x0600001B RID: 27 RVA: 0x000023F8 File Offset: 0x000005F8
16 public void Push(byte data)
17 {
18 int num = this.top;
19 int num2 = this.growthRate;
20 int num3 = this.top;
21 byte[] array = this.stack;
22 int num4 = this.top;
23 int num5 = this.size;
24 int num6 = this.growthRate;
26 }
27
28 // Token: 0x0600001C RID: 28 RVA: 0x00002458 File Offset: 0x00000658
29 public byte Pop()
30 {
31 /*
32An exception occurred when decompiling this method (0600001C)
33
34ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte System.Xml.ByteStack::Pop()
35
36 ---> System.Exception: Basic block has to end with unconditional control flow.
37{
38 Block_0:
39 stloc:uint8[](var_0_06, ldfld:uint8[](ByteStack::stack, ldloc:ByteStack(this)))
40}
41
42 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
43 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
44 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
45 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
46 --- End of inner exception stack trace ---
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 92
48 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
49*/;
50 }
51
52 // Token: 0x04000017 RID: 23
53 private byte[] stack;
54
55 // Token: 0x04000018 RID: 24
56 private int growthRate;
57
58 // Token: 0x04000019 RID: 25
59 private int top;
60
61 // Token: 0x0400001A RID: 26
62 private int size;
63 }
64}
class f__AnonymousType0<< Count > j__TPar
void Push(byte data)
Definition ByteStack.cs:16
ByteStack(int growthRate)
Definition ByteStack.cs:9