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
BigNumber.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Numerics
6{
7 // Token: 0x02000005 RID: 5
8 internal static class BigNumber
9 {
10 // Token: 0x06000026 RID: 38 RVA: 0x000024F8 File Offset: 0x000006F8
11 internal static char ParseFormatSpecifier(ReadOnlySpan<char> format, [Out] int digits)
12 {
13 /*
14An exception occurred when decompiling this method (06000026)
15
16ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char System.Numerics.BigNumber::ParseFormatSpecifier(System.ReadOnlySpan`1<System.Char>,System.Int32)
17
18 ---> System.Exception: Basic block has to end with unconditional control flow.
19{
20 IL_0014:
21 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](digits), ldloc:int32(var_0_01))
22}
23
24 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
25 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
26 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
27 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
28 --- End of inner exception stack trace ---
29 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
30 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
31*/;
32 }
33
34 // Token: 0x06000027 RID: 39 RVA: 0x00002524 File Offset: 0x00000724
35 private static string FormatBigIntegerToHex(bool targetSpan, BigInteger value, char format, int digits, NumberFormatInfo info, Span<char> destination, [Out] int charsWritten, [Out] bool spanSuccess)
36 {
37 int num = 1;
38 byte[] array;
39 if (array != null)
40 {
41 }
42 if (num == 0)
43 {
44 }
45 if (num == 0)
46 {
47 }
48 byte[] array2;
49 if (array2 == null)
50 {
51 }
54 string text;
55 return text;
56 }
57
58 // Token: 0x06000028 RID: 40 RVA: 0x00002570 File Offset: 0x00000770
60 {
61 if (format != null)
62 {
63 char rawStringData = format.GetRawStringData();
64 int stringLength = format._stringLength;
65 while (format != null)
66 {
67 }
68 }
69 string text;
70 return text;
71 }
72
73 // Token: 0x06000029 RID: 41 RVA: 0x00002594 File Offset: 0x00000794
75 {
76 string text;
77 return text;
78 }
79 }
80}
class f__AnonymousType0<< Count > j__TPar
static char ParseFormatSpecifier(ReadOnlySpan< char > format, [Out] int digits)
Definition BigNumber.cs:11
static string FormatBigInteger(BigInteger value, string format, NumberFormatInfo info)
Definition BigNumber.cs:59
static string FormatBigIntegerToHex(bool targetSpan, BigInteger value, char format, int digits, NumberFormatInfo info, Span< char > destination, [Out] int charsWritten, [Out] bool spanSuccess)
Definition BigNumber.cs:35
static string FormatBigInteger(bool targetSpan, BigInteger value, string formatString, ReadOnlySpan< char > formatSpan, NumberFormatInfo info, Span< char > destination, [Out] int charsWritten, [Out] bool spanSuccess)
Definition BigNumber.cs:74
static void ThrowArgumentOutOfRangeException()