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
AndroidReflection.cs
Go to the documentation of this file.
1using System;
4
5namespace UnityEngine
6{
7 // Token: 0x0200000A RID: 10
8 internal class AndroidReflection
9 {
10 // Token: 0x060000A4 RID: 164 RVA: 0x00003F90 File Offset: 0x00002190
11 public static bool IsPrimitive(Type t)
12 {
13 bool flag;
14 return flag;
15 }
16
17 // Token: 0x060000A5 RID: 165 RVA: 0x0000353A File Offset: 0x0000173A
18 public static bool IsAssignableFrom(Type t, Type from)
19 {
20 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
21 }
22
23 // Token: 0x060000A6 RID: 166 RVA: 0x00003FA0 File Offset: 0x000021A0
24 private static IntPtr GetStaticMethodID(string clazz, string methodName, string signature)
25 {
29 return staticMethodID;
30 }
31
32 // Token: 0x060000A7 RID: 167 RVA: 0x00003FDC File Offset: 0x000021DC
33 private static IntPtr GetMethodID(string clazz, string methodName, string signature)
34 {
38 return methodID;
39 }
40
41 // Token: 0x060000A8 RID: 168 RVA: 0x00004018 File Offset: 0x00002218
42 public static IntPtr GetConstructorMember(IntPtr jclass, string signature)
43 {
44 if (!true)
45 {
46 }
47 long num = 0L;
50 if (num == 0L)
51 {
52 return intPtr;
53 }
54 throw new OutOfMemoryException();
55 }
56
57 // Token: 0x060000A9 RID: 169 RVA: 0x00004054 File Offset: 0x00002254
58 public static IntPtr GetMethodMember(IntPtr jclass, string methodName, string signature, bool isStatic)
59 {
61 if (!true)
62 {
63 }
64 long num = 0L;
68 if (num == 0L)
69 {
70 return intPtr2;
71 }
72 throw new OutOfMemoryException();
73 }
74
75 // Token: 0x060000AA RID: 170 RVA: 0x000040A4 File Offset: 0x000022A4
76 public static IntPtr GetFieldMember(IntPtr jclass, string fieldName, string signature, bool isStatic)
77 {
79 if (!true)
80 {
81 }
82 long num = 0L;
86 if (num == 0L)
87 {
88 return intPtr2;
89 }
90 throw new OutOfMemoryException();
91 }
92
93 // Token: 0x060000AB RID: 171 RVA: 0x000040F4 File Offset: 0x000022F4
94 public static IntPtr GetFieldClass(IntPtr field)
95 {
96 if (!true)
97 {
98 }
100 return intPtr;
101 }
102
103 // Token: 0x060000AC RID: 172 RVA: 0x00004108 File Offset: 0x00002308
104 public static string GetFieldSignature(IntPtr field)
105 {
106 if (!true)
107 {
108 }
109 string text;
110 return text;
111 }
112
113 // Token: 0x060000AD RID: 173 RVA: 0x0000411C File Offset: 0x0000231C
115 {
116 if (!true)
117 {
118 }
120 return intPtr;
121 }
122
123 // Token: 0x060000AE RID: 174 RVA: 0x00004130 File Offset: 0x00002330
124 public static void SetNativeExceptionOnProxy(IntPtr proxy, Exception e, bool methodNotFound)
125 {
126 long num = GCHandle.ToIntPtr(GCHandle.Alloc(e)).ToInt64();
127 if (!true)
128 {
129 }
130 }
131
132 // Token: 0x060000AF RID: 175 RVA: 0x00004154 File Offset: 0x00002354
133 // Note: this type is marked as 'beforefieldinit'.
135 {
136 IntPtr intPtr = AndroidJNISafe.FindClass("com/unity3d/player/ReflectionHelper");
137 IntPtr staticMethodID = AndroidReflection.GetStaticMethodID("com/unity3d/player/ReflectionHelper", "getConstructorID", "(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Constructor;");
138 IntPtr staticMethodID2 = AndroidReflection.GetStaticMethodID("com/unity3d/player/ReflectionHelper", "getMethodID", "(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/reflect/Method;");
139 IntPtr staticMethodID3 = AndroidReflection.GetStaticMethodID("com/unity3d/player/ReflectionHelper", "getFieldID", "(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/reflect/Field;");
140 IntPtr staticMethodID4 = AndroidReflection.GetStaticMethodID("com/unity3d/player/ReflectionHelper", "getFieldSignature", "(Ljava/lang/reflect/Field;)Ljava/lang/String;");
141 IntPtr staticMethodID5 = AndroidReflection.GetStaticMethodID("com/unity3d/player/ReflectionHelper", "newProxyInstance", "(JLjava/lang/Class;)Ljava/lang/Object;");
142 IntPtr staticMethodID6 = AndroidReflection.GetStaticMethodID("com/unity3d/player/ReflectionHelper", "setNativeExceptionOnProxy", "(Ljava/lang/Object;JZ)V");
143 IntPtr methodID = AndroidReflection.GetMethodID("java/lang/reflect/Field", "getDeclaringClass", "()Ljava/lang/Class;");
144 }
145
146 // Token: 0x0400000C RID: 12
148
149 // Token: 0x0400000D RID: 13
151
152 // Token: 0x0400000E RID: 14
154
155 // Token: 0x0400000F RID: 15
157
158 // Token: 0x04000010 RID: 16
160
161 // Token: 0x04000011 RID: 17
163
164 // Token: 0x04000012 RID: 18
166
167 // Token: 0x04000013 RID: 19
169 }
170}
class f__AnonymousType0<< Count > j__TPar
static IntPtr GetStaticMethodID(IntPtr clazz, string name, string sig)
static IntPtr NewString(string chars)
static IntPtr FindClass(string name)
static void DeleteLocalRef(IntPtr localref)
static IntPtr GetMethodID(IntPtr obj, string name, string sig)
static readonly IntPtr s_ReflectionHelperNewProxyInstance
static string GetFieldSignature(IntPtr field)
static void SetNativeExceptionOnProxy(IntPtr proxy, Exception e, bool methodNotFound)
static readonly IntPtr s_FieldGetDeclaringClass
static bool IsAssignableFrom(Type t, Type from)
static readonly IntPtr s_ReflectionHelperSetNativeExceptionOnProxy
static IntPtr GetMethodMember(IntPtr jclass, string methodName, string signature, bool isStatic)
static IntPtr GetFieldClass(IntPtr field)
static IntPtr GetStaticMethodID(string clazz, string methodName, string signature)
static IntPtr NewProxyInstance(IntPtr delegateHandle, IntPtr interfaze)
static readonly GlobalJavaObjectRef s_ReflectionHelperClass
static IntPtr GetMethodID(string clazz, string methodName, string signature)
static readonly IntPtr s_ReflectionHelperGetConstructorID
static readonly IntPtr s_ReflectionHelperGetFieldID
static IntPtr GetConstructorMember(IntPtr jclass, string signature)
static IntPtr GetFieldMember(IntPtr jclass, string fieldName, string signature, bool isStatic)
static readonly IntPtr s_ReflectionHelperGetFieldSignature
static readonly IntPtr s_ReflectionHelperGetMethodID
long ToInt64()
Definition IntPtr.cs:78
static IntPtr ToIntPtr(GCHandle value)
Definition GCHandle.cs:186
static GCHandle Alloc(object value)
Definition GCHandle.cs:97