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
FastResourceComparer.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020004AF RID: 1199
9 {
10 // Token: 0x060022E3 RID: 8931 RVA: 0x0004E61C File Offset: 0x0004C81C
11 public int GetHashCode(object key)
12 {
13 if ((true && key != null) || key != null)
14 {
15 }
16 int num;
17 return num;
18 }
19
20 // Token: 0x060022E4 RID: 8932 RVA: 0x0004E63C File Offset: 0x0004C83C
21 public int GetHashCode(string key)
22 {
23 if (!true)
24 {
25 }
27 }
28
29 // Token: 0x060022E5 RID: 8933 RVA: 0x0004E654 File Offset: 0x0004C854
30 internal static int HashFunction(string key)
31 {
32 return 5381;
33 }
34
35 // Token: 0x060022E6 RID: 8934 RVA: 0x0004E668 File Offset: 0x0004C868
36 public int Compare(object a, object b)
37 {
38 if (b != null)
39 {
40 }
41 if (a != null)
42 {
43 }
44 int num;
45 return num;
46 }
47
48 // Token: 0x060022E7 RID: 8935 RVA: 0x0004E68C File Offset: 0x0004C88C
49 public int Compare(string a, string b)
50 {
51 return string.CompareOrdinal(a, b);
52 }
53
54 // Token: 0x060022E8 RID: 8936 RVA: 0x0004E6A0 File Offset: 0x0004C8A0
55 public bool Equals(string a, string b)
56 {
57 return string.Equals(a, b);
58 }
59
60 // Token: 0x060022E9 RID: 8937 RVA: 0x0004E6B4 File Offset: 0x0004C8B4
61 public bool Equals(object a, object b)
62 {
63 if (b != null)
64 {
65 }
66 if (a != null)
67 {
68 }
69 bool flag;
70 return flag;
71 }
72
73 // Token: 0x060022EA RID: 8938 RVA: 0x0004E6D8 File Offset: 0x0004C8D8
74 public static int CompareOrdinal(string a, byte[] bytes, int bCharLength)
75 {
76 /*
77An exception occurred when decompiling this method (060022EA)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Resources.FastResourceComparer::CompareOrdinal(System.String,System.Byte[],System.Int32)
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 IL_0006:
84 brtrue(IL_0000, ldloc:char[exp:bool](var_1))
85}
86
87 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
88 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
89 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
90 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
91 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
92 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
93 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
94 --- End of inner exception stack trace ---
95 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
96 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
97*/;
98 }
99
100 // Token: 0x060022EB RID: 8939 RVA: 0x0004E6F0 File Offset: 0x0004C8F0
101 public static int CompareOrdinal(byte[] bytes, int aCharLength, string b)
102 {
103 if (!true)
104 {
105 }
106 int num;
107 return num;
108 }
109
110 // Token: 0x060022EC RID: 8940 RVA: 0x0004E704 File Offset: 0x0004C904
111 internal unsafe static int CompareOrdinal(byte* a, int byteLen, string b)
112 {
113 /*
114An exception occurred when decompiling this method (060022EC)
115
116ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Resources.FastResourceComparer::CompareOrdinal(System.Byte*,System.Int32,System.String)
117
118 ---> System.Exception: Basic block has to end with unconditional control flow.
119{
120 Block_0:
121 brtrue(IL_0000, ldloc:char[exp:bool](var_1))
122}
123
124 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
125 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
126 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
127 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
128 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
129 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
130 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
131 --- End of inner exception stack trace ---
132 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
133 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
134*/;
135 }
136
137 // Token: 0x060022ED RID: 8941 RVA: 0x0004E718 File Offset: 0x0004C918
139 {
140 }
141
142 // Token: 0x060022EE RID: 8942 RVA: 0x0004E72C File Offset: 0x0004C92C
143 // Note: this type is marked as 'beforefieldinit'.
145 {
146 }
147
148 // Token: 0x04001320 RID: 4896
150 }
151}
class f__AnonymousType0<< Count > j__TPar
static int CompareOrdinal(byte[] bytes, int aCharLength, string b)
static int CompareOrdinal(string a, byte[] bytes, int bCharLength)
static readonly FastResourceComparer Default
static unsafe int CompareOrdinal(byte *a, int byteLen, string b)