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
SecurityDocument.cs
Go to the documentation of this file.
1using System;
3using System.Text;
5
6namespace System.Security
7{
8 // Token: 0x02000294 RID: 660
10 internal sealed class SecurityDocument
11 {
12 // Token: 0x060016C2 RID: 5826 RVA: 0x0002FF40 File Offset: 0x0002E140
14 {
15 }
16
17 // Token: 0x060016C3 RID: 5827 RVA: 0x0002FF54 File Offset: 0x0002E154
18 public void GuaranteeSize(int size)
19 {
20 byte[] data = this.m_data;
21 byte[] data2 = this.m_data;
22 }
23
24 // Token: 0x060016C4 RID: 5828 RVA: 0x0002FF70 File Offset: 0x0002E170
25 public void AddString(string str, int position)
26 {
27 int stringLength = str._stringLength;
28 int stringLength2 = str._stringLength;
29 byte[] data = this.m_data;
30 long num = 0L;
31 char c = str[(int)num];
32 byte[] data2 = this.m_data;
33 char c2 = str[(int)num];
34 int stringLength3 = str._stringLength;
35 byte[] data3 = this.m_data;
36 int stringLength4 = str._stringLength;
37 byte[] data4 = this.m_data;
38 int stringLength5 = str._stringLength;
39 }
40
41 // Token: 0x060016C5 RID: 5829 RVA: 0x0002FFD8 File Offset: 0x0002E1D8
42 public void AppendString(string str, int position)
43 {
44 while (this.m_data != null)
45 {
46 }
47 this.AddString(str, position);
48 }
49
50 // Token: 0x060016C6 RID: 5830 RVA: 0x0000207A File Offset: 0x0000027A
51 public static int EncodedStringSize(string str)
52 {
53 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
54 }
55
56 // Token: 0x060016C7 RID: 5831 RVA: 0x0002FFF8 File Offset: 0x0002E1F8
57 public string GetString(int position, bool bCreate)
58 {
59 if (this.m_data == null)
60 {
61 }
63 byte[] data = this.m_data;
65 if (sharedStringMaker._outStringBuilder == null)
66 {
67 outStringBuilder = sharedStringMaker._outStringBuilder;
68 }
69 char[] outChars = sharedStringMaker._outChars;
70 int num = 512;
71 long num2 = 0L;
72 StringBuilder stringBuilder = outStringBuilder.Append(outChars, (int)num2, num);
73 int num3 = 1;
74 char[] outChars2 = sharedStringMaker._outChars;
76 char[] outChars3 = sharedStringMaker._outChars;
79 return sharedStringMaker.MakeString();
80 }
81
82 // Token: 0x060016C8 RID: 5832 RVA: 0x000300B0 File Offset: 0x0002E2B0
83 public void AddToken(byte b, int position)
84 {
85 this.GuaranteeSize((int)b);
86 byte[] data = this.m_data;
87 }
88
89 // Token: 0x060016C9 RID: 5833 RVA: 0x000300CC File Offset: 0x0002E2CC
95
96 // Token: 0x060016CA RID: 5834 RVA: 0x000300DC File Offset: 0x0002E2DC
97 public SecurityElement GetElement(int position, bool bCreate)
98 {
99 return this.InternalGetElement(position, bCreate);
100 }
101
102 // Token: 0x060016CB RID: 5835 RVA: 0x000300F4 File Offset: 0x0002E2F4
103 internal SecurityElement InternalGetElement(int position, bool bCreate)
104 {
105 /*
106An exception occurred when decompiling this method (060016CB)
107
108ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.SecurityElement System.Security.SecurityDocument::InternalGetElement(System.Int32,System.Boolean)
109
110 ---> System.Exception: Basic block has to end with unconditional control flow.
111{
112 Block_0:
113 stloc:uint8[](var_0_06, ldfld:uint8[](SecurityDocument::m_data, ldloc:SecurityDocument(this)))
114 stloc:string(var_1_0F, call:string(SecurityDocument::GetString, ldloc:SecurityDocument(this), ldloc:int32(position), ldloc:bool(bCreate)))
115 stloc:int64(var_2_11, ldc.i4:int64(0))
116 stloc:string(var_4_1C, call:string(SecurityDocument::GetString, ldloc:SecurityDocument(this), ldloc:int32(position), ldloc:int64[exp:bool](var_2_11)))
117 stloc:string(var_5_26, call:string(SecurityDocument::GetString, ldloc:SecurityDocument(this), ldloc:int32(position), ldloc:int64[exp:bool](var_2_11)))
118 stloc:uint8[](var_6_2E, ldfld:uint8[](SecurityDocument::m_data, ldloc:SecurityDocument(this)))
119 stloc:uint8[](var_9_36, ldfld:uint8[](SecurityDocument::m_data, ldloc:SecurityDocument(this)))
120}
121
122 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
123 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
124 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
125 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
126 --- End of inner exception stack trace ---
127 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
128 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
129*/;
130 }
131
132 // Token: 0x04000B96 RID: 2966
133 internal byte[] m_data;
134 }
135}
class f__AnonymousType0<< Count > j__TPar
void AddString(string str, int position)
static int EncodedStringSize(string str)
void AppendString(string str, int position)
void AddToken(byte b, int position)
string GetString(int position, bool bCreate)
SecurityElement InternalGetElement(int position, bool bCreate)
SecurityElement GetElement(int position, bool bCreate)
static Tokenizer.StringMaker GetSharedStringMaker()
StringBuilder Append(char value, int repeatCount)