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
ParseNumbers.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x020000EE RID: 238
8 internal static class ParseNumbers
9 {
10 // Token: 0x060008D6 RID: 2262 RVA: 0x000158FC File Offset: 0x00013AFC
11 public static long StringToLong(ReadOnlySpan<char> s, int radix, int flags)
12 {
13 long num;
14 return num;
15 }
16
17 // Token: 0x060008D7 RID: 2263 RVA: 0x0001590C File Offset: 0x00013B0C
18 public static long StringToLong(ReadOnlySpan<char> s, int radix, int flags, int currPos)
19 {
20 int num = 10;
21 currPos.m_value = num;
22 long num2;
23 return num2;
24 }
25
26 // Token: 0x060008D8 RID: 2264 RVA: 0x0001594C File Offset: 0x00013B4C
27 public static int StringToInt(ReadOnlySpan<char> s, int radix, int flags)
28 {
29 int num;
30 return num;
31 }
32
33 // Token: 0x060008D9 RID: 2265 RVA: 0x0001595C File Offset: 0x00013B5C
34 public static int StringToInt(ReadOnlySpan<char> s, int radix, int flags, int currPos)
35 {
36 int num = 10;
37 currPos.m_value = num;
38 return "Value was either too large or too small for an Int32.";
39 }
40
41 // Token: 0x060008DA RID: 2266 RVA: 0x000159A8 File Offset: 0x00013BA8
42 private static void EatWhiteSpace(ReadOnlySpan<char> s, int i)
43 {
44 if (!true)
45 {
46 }
47 }
48
49 // Token: 0x060008DB RID: 2267 RVA: 0x000159B8 File Offset: 0x00013BB8
50 private static long GrabLongs(int radix, ReadOnlySpan<char> s, int i, bool isUnsigned)
51 {
52 return 0L;
53 }
54
55 // Token: 0x060008DC RID: 2268 RVA: 0x000159F8 File Offset: 0x00013BF8
56 private static int GrabInts(int radix, ReadOnlySpan<char> s, int i, bool isUnsigned)
57 {
58 /*
59An exception occurred when decompiling this method (060008DC)
60
61ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ParseNumbers::GrabInts(System.Int32,System.ReadOnlySpan`1<System.Char>,System.Int32,System.Boolean)
62
63 ---> System.Exception: Basic block has to end with unconditional control flow.
64{
65 Block_0:
66 call:void(ParseNumbers::ThrowOverflowInt32Exception)
67 call:void(ParseNumbers::ThrowOverflowUInt32Exception)
68}
69
70 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
71 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
72 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
73 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
74 --- End of inner exception stack trace ---
75 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
76 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
77*/;
78 }
79
80 // Token: 0x060008DD RID: 2269 RVA: 0x0000207A File Offset: 0x0000027A
81 private static void ThrowOverflowInt32Exception()
82 {
83 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
84 }
85
86 // Token: 0x060008DE RID: 2270 RVA: 0x0000207A File Offset: 0x0000027A
87 private static void ThrowOverflowInt64Exception()
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x060008DF RID: 2271 RVA: 0x0000207A File Offset: 0x0000027A
93 private static void ThrowOverflowUInt32Exception()
94 {
95 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
96 }
97
98 // Token: 0x060008E0 RID: 2272 RVA: 0x0000207A File Offset: 0x0000027A
99 private static void ThrowOverflowUInt64Exception()
100 {
101 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
102 }
103
104 // Token: 0x060008E1 RID: 2273 RVA: 0x00015A28 File Offset: 0x00013C28
105 private static bool IsDigit(char c, int radix, [Out] int result)
106 {
107 }
108 }
109}
class f__AnonymousType0<< Count > j__TPar
static bool IsDigit(char c, int radix, [Out] int result)
static long StringToLong(ReadOnlySpan< char > s, int radix, int flags)
static long StringToLong(ReadOnlySpan< char > s, int radix, int flags, int currPos)
static void ThrowOverflowUInt32Exception()
static void ThrowOverflowInt32Exception()
static int GrabInts(int radix, ReadOnlySpan< char > s, int i, bool isUnsigned)
static long GrabLongs(int radix, ReadOnlySpan< char > s, int i, bool isUnsigned)
static int StringToInt(ReadOnlySpan< char > s, int radix, int flags)
static void ThrowOverflowUInt64Exception()
static void ThrowOverflowInt64Exception()
static void EatWhiteSpace(ReadOnlySpan< char > s, int i)
static int StringToInt(ReadOnlySpan< char > s, int radix, int flags, int currPos)