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
ASN1.cs
Go to the documentation of this file.
1using System;
5
6namespace Mono.Security
7{
8 // Token: 0x02000040 RID: 64
9 [DefaultMember("Item")]
10 internal class ASN1
11 {
12 // Token: 0x06000107 RID: 263 RVA: 0x00004698 File Offset: 0x00002898
13 public ASN1(byte tag)
14 {
15 this.m_nTag = tag;
16 }
17
18 // Token: 0x06000108 RID: 264 RVA: 0x000046B4 File Offset: 0x000028B4
19 public ASN1(byte tag, byte[] data)
20 {
21 this.m_nTag = tag;
22 this.m_aValue = data;
23 }
24
25 // Token: 0x06000109 RID: 265 RVA: 0x000046D8 File Offset: 0x000028D8
26 public ASN1(byte[] data)
27 {
28 int num = 1;
29 base..ctor();
30 this.m_nTag = (byte)num;
31 }
32
33 // Token: 0x17000017 RID: 23
34 // (get) Token: 0x0600010A RID: 266 RVA: 0x00004728 File Offset: 0x00002928
35 public int Count
36 {
37 get
38 {
39 /*
40An exception occurred when decompiling this method (0600010A)
41
42ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Mono.Security.ASN1::get_Count()
43
44 ---> System.Exception: Basic block has to end with unconditional control flow.
45{
46 IL_0000:
47 brtrue(IL_0000, logicnot:bool(ldfld:ArrayList[exp:bool](ASN1::elist, ldloc:ASN1(this))))
48}
49
50 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
51 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
52 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
53 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62 }
63
64 // Token: 0x17000018 RID: 24
65 // (get) Token: 0x0600010B RID: 267 RVA: 0x0000473C File Offset: 0x0000293C
66 public byte[] Value
67 {
68 get
69 {
70 if (this.m_aValue == null)
71 {
72 byte[] aValue = this.m_aValue;
73 }
74 object obj;
75 if (obj == null || obj != null)
76 {
77 }
78 throw new InvalidCastException();
79 }
80 }
81
82 // Token: 0x0600010C RID: 268 RVA: 0x00004764 File Offset: 0x00002964
83 public ASN1 Add(ASN1 asn1)
84 {
85 if (this.elist == null)
86 {
87 }
88 return asn1;
89 }
90
91 // Token: 0x0600010D RID: 269 RVA: 0x0000477C File Offset: 0x0000297C
92 public virtual byte[] GetBytes()
93 {
95 if (this.elist != null)
96 {
97 arrayList = this.elist;
98 int size = arrayList._size;
99 }
100 if (this.m_aValue == null)
101 {
102 long num = 0L;
103 int num2 = 5;
104 if (arrayList != null)
105 {
106 }
107 if (num != 0L)
108 {
109 throw new OutOfMemoryException();
110 }
111 if (num2 != 0)
112 {
113 goto IL_0063;
114 }
117 }
118 if (this.m_aValue == null)
119 {
120 }
121 byte nTag = this.m_nTag;
122 IL_0063:
123 throw new InvalidCastException();
124 }
125
126 // Token: 0x0600010E RID: 270 RVA: 0x00004808 File Offset: 0x00002A08
127 protected void Decode(byte[] asn1, int anPos, int anLength)
128 {
129 }
130
131 // Token: 0x0600010F RID: 271 RVA: 0x00004820 File Offset: 0x00002A20
132 protected void DecodeTLV(byte[] asn1, int pos, [Out] byte tag, [Out] int length, [Out] byte[] content)
133 {
134 int num = 1;
135 tag.m_value = (byte)num;
138 }
139
140 // Token: 0x06000110 RID: 272 RVA: 0x0000484C File Offset: 0x00002A4C
141 public override string ToString()
142 {
143 /*
144An exception occurred when decompiling this method (06000110)
145
146ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Mono.Security.ASN1::ToString()
147
148 ---> System.Exception: Basic block has to end with unconditional control flow.
149{
150 Block_0:
151 stloc:string(var_3_09, callgetter:string(Environment::get_NewLine))
152 stloc:uint8[](var_5_10, callgetter:uint8[](ASN1::get_Value, ldloc:ASN1(this)))
153 stloc:string(var_7_1A, callgetter:string(Environment::get_NewLine))
154 stloc:string(var_11_24, callgetter:string(Environment::get_NewLine))
155 stloc:uint8[](var_13_2C, callgetter:uint8[](ASN1::get_Value, ldloc:ASN1(this)))
156 stloc:string(var_14_3E, call:string(uint8::ToString, callgetter:uint8[][exp:uint8&](ASN1::get_Value, ldloc:ASN1(this)), ldstr:string("X2")))
157 stloc:string(var_17_48, callgetter:string(Environment::get_NewLine))
158 stloc:uint8[](var_19_50, callgetter:uint8[](ASN1::get_Value, ldloc:ASN1(this)))
159}
160
161 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
162 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
163 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
164 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
165 --- End of inner exception stack trace ---
166 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
167 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
168*/;
169 }
170
171 // Token: 0x0400013B RID: 315
172 private byte m_nTag;
173
174 // Token: 0x0400013C RID: 316
175 private byte[] m_aValue;
176
177 // Token: 0x0400013D RID: 317
178 private ArrayList elist;
179 }
180}
class f__AnonymousType0<< Count > j__TPar
void DecodeTLV(byte[] asn1, int pos, [Out] byte tag, [Out] int length, [Out] byte[] content)
Definition ASN1.cs:132
ASN1(byte tag)
Definition ASN1.cs:13
ASN1 Add(ASN1 asn1)
Definition ASN1.cs:83
byte[] Value
Definition ASN1.cs:89
ArrayList elist
Definition ASN1.cs:271
virtual byte[] GetBytes()
Definition ASN1.cs:92
void Decode(byte[] asn1, int anPos, int anLength)
Definition ASN1.cs:127
ASN1(byte[] data)
Definition ASN1.cs:26
override string ToString()
Definition ASN1.cs:141
byte[] m_aValue
Definition ASN1.cs:268
ASN1(byte tag, byte[] data)
Definition ASN1.cs:19