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
CADMessageBase.cs
Go to the documentation of this file.
1using System;
3using System.IO;
6
8{
9 // Token: 0x0200039E RID: 926
10 internal class CADMessageBase
11 {
12 // Token: 0x06001DC2 RID: 7618 RVA: 0x00040F28 File Offset: 0x0003F128
18
19 // Token: 0x06001DC3 RID: 7619 RVA: 0x00040F44 File Offset: 0x0003F144
21 {
22 if (CADSerializer.DeserializeObjectSafe(this.serializedMethod) != null)
23 {
24 }
25 MethodBase methodBase;
26 return methodBase;
27 }
28
29 // Token: 0x06001DC4 RID: 7620 RVA: 0x00040F68 File Offset: 0x0003F168
30 protected static Type[] GetSignature(MethodBase methodBase, bool load)
31 {
33 }
34
35 // Token: 0x06001DC5 RID: 7621 RVA: 0x00040F80 File Offset: 0x0003F180
36 internal static int MarshalProperties(IDictionary dict, ArrayList args)
37 {
38 long num = 0L;
40 if (dictionary != null)
41 {
42 }
43 long num2 = 0L;
44 if (num != 0L)
45 {
46 throw new OutOfMemoryException();
47 }
48 long value = num2.m_value;
49 long num3 = 0L;
50 int num4 = 3;
51 if (dictionary != null)
52 {
53 }
54 if (num3 == 0L)
55 {
56 while (num4 != 0)
57 {
58 }
59 throw new InvalidCastException();
60 }
61 throw new OutOfMemoryException();
62 }
63
64 // Token: 0x06001DC6 RID: 7622 RVA: 0x00040FE0 File Offset: 0x0003F1E0
65 internal static void UnmarshalProperties(IDictionary dict, int count, ArrayList args)
66 {
67 }
68
69 // Token: 0x06001DC7 RID: 7623 RVA: 0x00040FF8 File Offset: 0x0003F1F8
70 private static bool IsPossibleToIgnoreMarshal(object obj)
71 {
72 Type type;
73 bool isPrimitive = type.IsPrimitive;
74 Type type2;
75 bool flag = type == type2;
76 bool isArray = type.IsArray;
77 bool isPrimitive2 = type.IsPrimitive;
78 throw new InvalidCastException();
79 }
80
81 // Token: 0x06001DC8 RID: 7624 RVA: 0x00041034 File Offset: 0x0003F234
82 protected object MarshalArgument(object arg, ArrayList args)
83 {
84 /*
85An exception occurred when decompiling this method (06001DC8)
86
87ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Remoting.Messaging.CADMessageBase::MarshalArgument(System.Object,System.Collections.ArrayList)
88
89 ---> System.Exception: Basic block has to end with unconditional control flow.
90{
91 IL_0011:
92 stloc:int32(var_4_18, call:int32(Thread::GetDomainID))
93 stloc:uint8[](var_5_20, call:uint8[](ObjRef::SerializeType, ldloc:ObjRef(var_2)))
94}
95
96 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
97 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
98 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
99 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
100 --- End of inner exception stack trace ---
101 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
102 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
103*/;
104 }
105
106 // Token: 0x06001DC9 RID: 7625 RVA: 0x00041064 File Offset: 0x0003F264
107 protected object UnmarshalArgument(object arg, ArrayList args)
108 {
109 if (arg != null)
110 {
111 TypeCode typeCode = Type.GetTypeCode(arg.GetType());
112 }
115 }
116
117 // Token: 0x06001DCA RID: 7626 RVA: 0x000410C0 File Offset: 0x0003F2C0
118 internal object[] MarshalArguments(object[] arguments, ArrayList args)
119 {
120 object obj;
121 if (obj == null || obj != null)
122 {
123 }
124 throw new ArrayTypeMismatchException();
125 }
126
127 // Token: 0x06001DCB RID: 7627 RVA: 0x000410DC File Offset: 0x0003F2DC
128 internal object[] UnmarshalArguments(object[] arguments, ArrayList args)
129 {
130 object obj;
131 if (obj == null || obj != null)
132 {
133 }
134 throw new ArrayTypeMismatchException();
135 }
136
137 // Token: 0x06001DCC RID: 7628 RVA: 0x000410F8 File Offset: 0x0003F2F8
141
142 // Token: 0x06001DCD RID: 7629 RVA: 0x0004110C File Offset: 0x0003F30C
144 {
145 do
146 {
147 CADArgHolder callContext = this._callContext;
148 if (callContext == null)
149 {
150 return;
151 }
152 int index = callContext.index;
153 }
154 while (args == null);
155 throw new InvalidCastException();
156 }
157
158 // Token: 0x04000F0D RID: 3853
159 protected object[] _args;
160
161 // Token: 0x04000F0E RID: 3854
162 protected byte[] _serializedArgs;
163
164 // Token: 0x04000F0F RID: 3855
165 protected int _propertyCount;
166
167 // Token: 0x04000F10 RID: 3856
169
170 // Token: 0x04000F11 RID: 3857
171 internal byte[] serializedMethod;
172 }
173}
class f__AnonymousType0<< Count > j__TPar
static object DeserializeObjectSafe(byte[] mem)
object[] MarshalArguments(object[] arguments, ArrayList args)
static int MarshalProperties(IDictionary dict, ArrayList args)
object[] UnmarshalArguments(object[] arguments, ArrayList args)
object MarshalArgument(object arg, ArrayList args)
object UnmarshalArgument(object arg, ArrayList args)
LogicalCallContext GetLogicalCallContext(ArrayList args)
static Type[] GetSignature(MethodBase methodBase, bool load)
static void UnmarshalProperties(IDictionary dict, int count, ArrayList args)
void SaveLogicalCallContext(IMethodMessage msg, ArrayList serializeList)
static object Unmarshal(ObjRef objectRef)
bool IsArray
Definition Type.cs:356
bool IsPrimitive
Definition Type.cs:780
static TypeCode GetTypeCode(Type type)
Definition Type.cs:1110
TypeCode
Definition TypeCode.cs:7