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
ByteMatcher.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x02000191 RID: 401
8 internal class ByteMatcher
9 {
10 // Token: 0x06000FB0 RID: 4016 RVA: 0x00021828 File Offset: 0x0001FA28
11 public void AddMapping(TermInfoStrings key, byte[] val)
12 {
13 if (true)
14 {
15 Hashtable hashtable = this.map;
17 }
18 }
19
20 // Token: 0x06000FB1 RID: 4017 RVA: 0x00021848 File Offset: 0x0001FA48
21 public void Sort()
22 {
23 }
24
25 // Token: 0x06000FB2 RID: 4018 RVA: 0x00021858 File Offset: 0x0001FA58
26 public bool StartsWith(int c)
27 {
28 /*
29An exception occurred when decompiling this method (06000FB2)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ByteMatcher::StartsWith(System.Int32)
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:Hashtable(var_0_06, ldfld:Hashtable(ByteMatcher::starts, ldloc:ByteMatcher(this)))
37}
38
39 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
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48
49 // Token: 0x06000FB3 RID: 4019 RVA: 0x0002186C File Offset: 0x0001FA6C
50 public TermInfoStrings Match(char[] buffer, int offset, int length, [Out] int used)
51 {
52 Hashtable hashtable = this.map;
53 if (hashtable == null || hashtable == null)
54 {
55 }
57 long num = 0L;
58 if (hashtable != null)
59 {
60 }
61 if (num == 0L)
62 {
63 throw new InvalidCastException();
64 }
65 throw new OutOfMemoryException();
66 }
67
68 // Token: 0x06000FB4 RID: 4020 RVA: 0x000218BC File Offset: 0x0001FABC
69 public ByteMatcher()
70 {
71 }
72
73 // Token: 0x040006C9 RID: 1737
74 private Hashtable map;
75
76 // Token: 0x040006CA RID: 1738
78 }
79}
class f__AnonymousType0<< Count > j__TPar
TermInfoStrings Match(char[] buffer, int offset, int length, [Out] int used)
bool StartsWith(int c)
void AddMapping(TermInfoStrings key, byte[] val)