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
BitConverter.cs
Go to the documentation of this file.
1using System;
5
6namespace System
7{
8 // Token: 0x02000090 RID: 144
9 public static class BitConverter
10 {
11 // Token: 0x06000415 RID: 1045 RVA: 0x0000207A File Offset: 0x0000027A
12 public static byte[] GetBytes(int value)
13 {
14 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
15 }
16
17 // Token: 0x06000416 RID: 1046 RVA: 0x0000207A File Offset: 0x0000027A
18 public static byte[] GetBytes(long value)
19 {
20 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
21 }
22
23 // Token: 0x06000417 RID: 1047 RVA: 0x0000207A File Offset: 0x0000027A
24 [CLSCompliant(false)]
25 public static byte[] GetBytes(ushort value)
26 {
27 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
28 }
29
30 // Token: 0x06000418 RID: 1048 RVA: 0x0000207A File Offset: 0x0000027A
31 [CLSCompliant(false)]
32 public static byte[] GetBytes(uint value)
33 {
34 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
35 }
36
37 // Token: 0x06000419 RID: 1049 RVA: 0x0000C914 File Offset: 0x0000AB14
38 [CLSCompliant(false)]
39 public static bool TryWriteBytes(Span<byte> destination, uint value)
40 {
41 return true;
42 }
43
44 // Token: 0x0600041A RID: 1050 RVA: 0x0000207A File Offset: 0x0000027A
45 public static byte[] GetBytes(float value)
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49
50 // Token: 0x0600041B RID: 1051 RVA: 0x0000C924 File Offset: 0x0000AB24
51 public static short ToInt16(byte[] value, int startIndex)
52 {
53 }
54
55 // Token: 0x0600041C RID: 1052 RVA: 0x0000C938 File Offset: 0x0000AB38
56 public static int ToInt32(byte[] value, int startIndex)
57 {
58 return 5;
59 }
60
61 // Token: 0x0600041D RID: 1053 RVA: 0x0000C94C File Offset: 0x0000AB4C
62 public static long ToInt64(byte[] value, int startIndex)
63 {
64 }
65
66 // Token: 0x0600041E RID: 1054 RVA: 0x0000C960 File Offset: 0x0000AB60
67 [CLSCompliant(false)]
68 public static ushort ToUInt16(byte[] value, int startIndex)
69 {
70 /*
71An exception occurred when decompiling this method (0600041E)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt16 System.BitConverter::ToUInt16(System.Byte[],System.Int32)
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 IL_0000:
78 brtrue(IL_0000, ldc.i4:bool(1))
79}
80
81 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
82 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
83 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
84 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
85 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
86 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
87 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
88 --- End of inner exception stack trace ---
89 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
90 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
91*/;
92 }
93
94 // Token: 0x0600041F RID: 1055 RVA: 0x0000C970 File Offset: 0x0000AB70
95 [CLSCompliant(false)]
96 public static uint ToUInt32(byte[] value, int startIndex)
97 {
98 /*
99An exception occurred when decompiling this method (0600041F)
100
101ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt32 System.BitConverter::ToUInt32(System.Byte[],System.Int32)
102
103 ---> System.Exception: Basic block has to end with unconditional control flow.
104{
105 IL_0000:
106 brtrue(IL_0000, ldc.i4:bool(1))
107}
108
109 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
110 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
111 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
112 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
113 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
114 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
115 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
116 --- End of inner exception stack trace ---
117 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
118 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
119*/;
120 }
121
122 // Token: 0x06000420 RID: 1056 RVA: 0x0000C980 File Offset: 0x0000AB80
123 public static string ToString(byte[] value, int startIndex, int length)
124 {
125 do
126 {
127 if (value != null)
128 {
129 }
130 }
131 while (startIndex == 0);
132 string text;
133 return text;
134 }
135
136 // Token: 0x06000421 RID: 1057 RVA: 0x0000C9A0 File Offset: 0x0000ABA0
137 public static string ToString(byte[] value)
138 {
140 if (!true)
141 {
142 }
143 string text;
144 return text;
145 }
146
147 // Token: 0x06000422 RID: 1058 RVA: 0x0000207A File Offset: 0x0000027A
148 public static long DoubleToInt64Bits(double value)
149 {
150 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
151 }
152
153 // Token: 0x06000423 RID: 1059 RVA: 0x0000207A File Offset: 0x0000027A
154 public static double Int64BitsToDouble(long value)
155 {
156 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
157 }
158
159 // Token: 0x06000424 RID: 1060 RVA: 0x0000207A File Offset: 0x0000027A
160 public static int SingleToInt32Bits(float value)
161 {
162 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
163 }
164
165 // Token: 0x06000425 RID: 1061 RVA: 0x0000C9B8 File Offset: 0x0000ABB8
167 {
168 }
169
170 // Token: 0x040001FD RID: 509
171 [Intrinsic]
172 public static readonly bool IsLittleEndian;
173
174 // Token: 0x02000091 RID: 145
176 [Serializable]
177 private sealed class <>c
178 {
179 // Token: 0x06000426 RID: 1062 RVA: 0x0000C9C8 File Offset: 0x0000ABC8
180 // Note: this type is marked as 'beforefieldinit'.
181 static <>c()
182 {
183 }
184
185 // Token: 0x06000427 RID: 1063 RVA: 0x0000C9D8 File Offset: 0x0000ABD8
186 public <>c()
187 {
188 }
189
190 // Token: 0x06000428 RID: 1064 RVA: 0x0000C9EC File Offset: 0x0000ABEC
191 internal void <ToString>b__38_0(Span<char> dst, [TupleElementNames(new string[] { "value", "startIndex", "length" })] ValueTuple<byte[], int, int> state)
192 {
194 char c;
195 dst._pointer = c;
196 int num = 45;
197 dst._pointer = num;
198 char c2;
200 char c3;
202 }
203
204 // Token: 0x040001FE RID: 510
205 public static readonly BitConverter.<>c <>9;
206
207 // Token: 0x040001FF RID: 511
208 [TupleElementNames(new string[] { "value", "startIndex", "length" })]
209 public static SpanAction<char, ValueTuple<byte[], int, int>> <>9__38_0;
210 }
211 }
212}
class f__AnonymousType0<< Count > j__TPar
static byte[] GetBytes(float value)
static byte[] GetBytes(long value)
static string ToString(byte[] value, int startIndex, int length)
static double Int64BitsToDouble(long value)
static long ToInt64(byte[] value, int startIndex)
static uint ToUInt32(byte[] value, int startIndex)
static int SingleToInt32Bits(float value)
static short ToInt16(byte[] value, int startIndex)
static bool TryWriteBytes(Span< byte > destination, uint value)
static byte[] GetBytes(uint value)
static readonly bool IsLittleEndian
static byte[] GetBytes(int value)
static byte[] GetBytes(ushort value)
static long DoubleToInt64Bits(double value)
static ushort ToUInt16(byte[] value, int startIndex)
static string ToString(byte[] value)
static int ToInt32(byte[] value, int startIndex)
static void ThrowArgumentNullException(ExceptionArgument argument)
static void ThrowArgumentOutOfRangeException()