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
RuntimeMarshal.cs
Go to the documentation of this file.
1using System;
3using System.Text;
5
6namespace Mono
7{
8 // Token: 0x02000019 RID: 25
9 internal static class RuntimeMarshal
10 {
11 // Token: 0x0600005C RID: 92 RVA: 0x00002568 File Offset: 0x00000768
12 internal static string PtrToUtf8String(IntPtr ptr)
13 {
15 string text;
16 return text;
17 }
18
19 // Token: 0x0600005D RID: 93 RVA: 0x0000207A File Offset: 0x0000027A
20 internal static SafeStringMarshal MarshalString(string str)
21 {
22 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
23 }
24
25 // Token: 0x0600005E RID: 94 RVA: 0x00002584 File Offset: 0x00000784
26 private static int DecodeBlobSize(IntPtr in_ptr, [Out] IntPtr out_ptr)
27 {
28 /*
29An exception occurred when decompiling this method (0600005E)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Mono.RuntimeMarshal::DecodeBlobSize(System.IntPtr,System.IntPtr)
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:native int(var_1_06, call:native int(native int::op_Explicit, ldloc:void*(var_0)))
37 stfld:void*(native int::m_value, ldloc:native int[exp:native int&](in_ptr), ldloc:native int[exp:void*](var_1_06))
38}
39
40 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
41 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
42 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
43 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
44 --- End of inner exception stack trace ---
45 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
46 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
47*/;
48 }
49
50 // Token: 0x0600005F RID: 95 RVA: 0x0000207A File Offset: 0x0000027A
51 internal static byte[] DecodeBlobArray(IntPtr ptr)
52 {
53 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
54 }
55
56 // Token: 0x06000060 RID: 96 RVA: 0x0000207A File Offset: 0x0000027A
57 internal static int AsciHexDigitValue(int c)
58 {
59 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
60 }
61
62 // Token: 0x06000061 RID: 97 RVA: 0x000025A0 File Offset: 0x000007A0
64 {
65 }
66 }
67}
class f__AnonymousType0<< Count > j__TPar
static byte[] DecodeBlobArray(IntPtr ptr)
static void FreeAssemblyName(MonoAssemblyName name, bool freeStruct)
static SafeStringMarshal MarshalString(string str)
static int AsciHexDigitValue(int c)
static int DecodeBlobSize(IntPtr in_ptr, [Out] IntPtr out_ptr)
static string PtrToUtf8String(IntPtr ptr)
static Encoding UTF8
Definition Encoding.cs:828