No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnityEngine.JSONSerializeModule.cpp 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. #include "pch-cpp.hpp"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <limits>
  8. template <typename R>
  9. struct VirtualFuncInvoker0
  10. {
  11. typedef R (*Func)(void*, const RuntimeMethod*);
  12. static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
  13. {
  14. const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
  15. return ((Func)invokeData.methodPtr)(obj, invokeData.method);
  16. }
  17. };
  18. template <typename R, typename T1>
  19. struct VirtualFuncInvoker1
  20. {
  21. typedef R (*Func)(void*, T1, const RuntimeMethod*);
  22. static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
  23. {
  24. const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
  25. return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
  26. }
  27. };
  28. // System.IntPtr[]
  29. struct IntPtrU5BU5D_tFD177F8C806A6921AD7150264CCC62FA00CAD832;
  30. // System.Diagnostics.StackTrace[]
  31. struct StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF;
  32. // System.Type[]
  33. struct TypeU5BU5D_t97234E1129B564EB38B8D85CAC2AD8B5B9522FFB;
  34. // System.ArgumentException
  35. struct ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263;
  36. // System.ArgumentNullException
  37. struct ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129;
  38. // System.Reflection.Binder
  39. struct Binder_t91BFCE95A7057FADF4D8A1A342AFE52872246235;
  40. // System.Collections.IDictionary
  41. struct IDictionary_t6D03155AF1FA9083817AA5B6AD7DEEACC26AB220;
  42. // System.Reflection.MemberFilter
  43. struct MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553;
  44. // System.Runtime.Serialization.SafeSerializationManager
  45. struct SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6;
  46. // System.String
  47. struct String_t;
  48. // System.Type
  49. struct Type_t;
  50. // System.Void
  51. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  52. IL2CPP_EXTERN_C RuntimeClass* ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var;
  53. IL2CPP_EXTERN_C RuntimeClass* ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129_il2cpp_TypeInfo_var;
  54. IL2CPP_EXTERN_C RuntimeClass* MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71_il2cpp_TypeInfo_var;
  55. IL2CPP_EXTERN_C RuntimeClass* Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var;
  56. IL2CPP_EXTERN_C RuntimeClass* ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_il2cpp_TypeInfo_var;
  57. IL2CPP_EXTERN_C RuntimeClass* Type_t_il2cpp_TypeInfo_var;
  58. IL2CPP_EXTERN_C String_t* _stringLiteral1A021298794A95A088D89F0DFEE478EB088FC94B;
  59. IL2CPP_EXTERN_C String_t* _stringLiteral8B9E56C5D95D7C3EED5199236F70D44573B11813;
  60. IL2CPP_EXTERN_C String_t* _stringLiteral9149DCC4875937380DD00ED5471A7A1258254B95;
  61. IL2CPP_EXTERN_C String_t* _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
  62. IL2CPP_EXTERN_C String_t* _stringLiteralF3C6C902DBF80139640F6554F0C3392016A8ADF7;
  63. IL2CPP_EXTERN_C const RuntimeMethod* JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A_RuntimeMethod_var;
  64. IL2CPP_EXTERN_C const RuntimeMethod* JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53_RuntimeMethod_var;
  65. IL2CPP_EXTERN_C const RuntimeType* Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_0_0_0_var;
  66. struct Exception_t_marshaled_com;
  67. struct Exception_t_marshaled_pinvoke;
  68. IL2CPP_EXTERN_C_BEGIN
  69. IL2CPP_EXTERN_C_END
  70. #ifdef __clang__
  71. #pragma clang diagnostic push
  72. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  73. #pragma clang diagnostic ignored "-Wunused-variable"
  74. #endif
  75. // <Module>
  76. struct U3CModuleU3E_t2F9091E403B25A5364AE8A6B2C249E31D405E3F4
  77. {
  78. };
  79. // UnityEngine.JsonUtility
  80. struct JsonUtility_t731013D97E03B7EDAE6186D6D6826A53B85F7197 : public RuntimeObject
  81. {
  82. };
  83. // System.Reflection.MemberInfo
  84. struct MemberInfo_t : public RuntimeObject
  85. {
  86. };
  87. // System.String
  88. struct String_t : public RuntimeObject
  89. {
  90. // System.Int32 System.String::_stringLength
  91. int32_t ____stringLength_4;
  92. // System.Char System.String::_firstChar
  93. Il2CppChar ____firstChar_5;
  94. };
  95. // System.ValueType
  96. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  97. {
  98. };
  99. // Native definition for P/Invoke marshalling of System.ValueType
  100. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  101. {
  102. };
  103. // Native definition for COM marshalling of System.ValueType
  104. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  105. {
  106. };
  107. // System.Boolean
  108. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  109. {
  110. // System.Boolean System.Boolean::m_value
  111. bool ___m_value_0;
  112. };
  113. // System.IntPtr
  114. struct IntPtr_t
  115. {
  116. // System.Void* System.IntPtr::m_value
  117. void* ___m_value_0;
  118. };
  119. // System.Void
  120. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  121. {
  122. union
  123. {
  124. struct
  125. {
  126. };
  127. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  128. };
  129. };
  130. // System.Exception
  131. struct Exception_t : public RuntimeObject
  132. {
  133. // System.String System.Exception::_className
  134. String_t* ____className_1;
  135. // System.String System.Exception::_message
  136. String_t* ____message_2;
  137. // System.Collections.IDictionary System.Exception::_data
  138. RuntimeObject* ____data_3;
  139. // System.Exception System.Exception::_innerException
  140. Exception_t* ____innerException_4;
  141. // System.String System.Exception::_helpURL
  142. String_t* ____helpURL_5;
  143. // System.Object System.Exception::_stackTrace
  144. RuntimeObject* ____stackTrace_6;
  145. // System.String System.Exception::_stackTraceString
  146. String_t* ____stackTraceString_7;
  147. // System.String System.Exception::_remoteStackTraceString
  148. String_t* ____remoteStackTraceString_8;
  149. // System.Int32 System.Exception::_remoteStackIndex
  150. int32_t ____remoteStackIndex_9;
  151. // System.Object System.Exception::_dynamicMethods
  152. RuntimeObject* ____dynamicMethods_10;
  153. // System.Int32 System.Exception::_HResult
  154. int32_t ____HResult_11;
  155. // System.String System.Exception::_source
  156. String_t* ____source_12;
  157. // System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager
  158. SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6* ____safeSerializationManager_13;
  159. // System.Diagnostics.StackTrace[] System.Exception::captured_traces
  160. StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF* ___captured_traces_14;
  161. // System.IntPtr[] System.Exception::native_trace_ips
  162. IntPtrU5BU5D_tFD177F8C806A6921AD7150264CCC62FA00CAD832* ___native_trace_ips_15;
  163. // System.Int32 System.Exception::caught_in_unmanaged
  164. int32_t ___caught_in_unmanaged_16;
  165. };
  166. // Native definition for P/Invoke marshalling of System.Exception
  167. struct Exception_t_marshaled_pinvoke
  168. {
  169. char* ____className_1;
  170. char* ____message_2;
  171. RuntimeObject* ____data_3;
  172. Exception_t_marshaled_pinvoke* ____innerException_4;
  173. char* ____helpURL_5;
  174. Il2CppIUnknown* ____stackTrace_6;
  175. char* ____stackTraceString_7;
  176. char* ____remoteStackTraceString_8;
  177. int32_t ____remoteStackIndex_9;
  178. Il2CppIUnknown* ____dynamicMethods_10;
  179. int32_t ____HResult_11;
  180. char* ____source_12;
  181. SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6* ____safeSerializationManager_13;
  182. StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF* ___captured_traces_14;
  183. Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
  184. int32_t ___caught_in_unmanaged_16;
  185. };
  186. // Native definition for COM marshalling of System.Exception
  187. struct Exception_t_marshaled_com
  188. {
  189. Il2CppChar* ____className_1;
  190. Il2CppChar* ____message_2;
  191. RuntimeObject* ____data_3;
  192. Exception_t_marshaled_com* ____innerException_4;
  193. Il2CppChar* ____helpURL_5;
  194. Il2CppIUnknown* ____stackTrace_6;
  195. Il2CppChar* ____stackTraceString_7;
  196. Il2CppChar* ____remoteStackTraceString_8;
  197. int32_t ____remoteStackIndex_9;
  198. Il2CppIUnknown* ____dynamicMethods_10;
  199. int32_t ____HResult_11;
  200. Il2CppChar* ____source_12;
  201. SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6* ____safeSerializationManager_13;
  202. StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF* ___captured_traces_14;
  203. Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
  204. int32_t ___caught_in_unmanaged_16;
  205. };
  206. // UnityEngine.Object
  207. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
  208. {
  209. // System.IntPtr UnityEngine.Object::m_CachedPtr
  210. intptr_t ___m_CachedPtr_0;
  211. };
  212. // Native definition for P/Invoke marshalling of UnityEngine.Object
  213. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  214. {
  215. intptr_t ___m_CachedPtr_0;
  216. };
  217. // Native definition for COM marshalling of UnityEngine.Object
  218. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  219. {
  220. intptr_t ___m_CachedPtr_0;
  221. };
  222. // System.RuntimeTypeHandle
  223. struct RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B
  224. {
  225. // System.IntPtr System.RuntimeTypeHandle::value
  226. intptr_t ___value_0;
  227. };
  228. // UnityEngine.Component
  229. struct Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  230. {
  231. };
  232. // UnityEngine.ScriptableObject
  233. struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  234. {
  235. };
  236. // Native definition for P/Invoke marshalling of UnityEngine.ScriptableObject
  237. struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_marshaled_pinvoke : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  238. {
  239. };
  240. // Native definition for COM marshalling of UnityEngine.ScriptableObject
  241. struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_marshaled_com : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  242. {
  243. };
  244. // System.SystemException
  245. struct SystemException_tCC48D868298F4C0705279823E34B00F4FBDB7295 : public Exception_t
  246. {
  247. };
  248. // System.Type
  249. struct Type_t : public MemberInfo_t
  250. {
  251. // System.RuntimeTypeHandle System.Type::_impl
  252. RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B ____impl_8;
  253. };
  254. // System.ArgumentException
  255. struct ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263 : public SystemException_tCC48D868298F4C0705279823E34B00F4FBDB7295
  256. {
  257. // System.String System.ArgumentException::_paramName
  258. String_t* ____paramName_18;
  259. };
  260. // UnityEngine.Behaviour
  261. struct Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA : public Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3
  262. {
  263. };
  264. // System.ArgumentNullException
  265. struct ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129 : public ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263
  266. {
  267. };
  268. // UnityEngine.MonoBehaviour
  269. struct MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71 : public Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA
  270. {
  271. };
  272. // <Module>
  273. // <Module>
  274. // UnityEngine.JsonUtility
  275. // UnityEngine.JsonUtility
  276. // System.Reflection.MemberInfo
  277. // System.Reflection.MemberInfo
  278. // System.String
  279. struct String_t_StaticFields
  280. {
  281. // System.String System.String::Empty
  282. String_t* ___Empty_6;
  283. };
  284. // System.String
  285. // System.Boolean
  286. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  287. {
  288. // System.String System.Boolean::TrueString
  289. String_t* ___TrueString_5;
  290. // System.String System.Boolean::FalseString
  291. String_t* ___FalseString_6;
  292. };
  293. // System.Boolean
  294. // System.Void
  295. // System.Void
  296. // UnityEngine.Object
  297. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_StaticFields
  298. {
  299. // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
  300. int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
  301. };
  302. // UnityEngine.Object
  303. // System.RuntimeTypeHandle
  304. // System.RuntimeTypeHandle
  305. // UnityEngine.ScriptableObject
  306. // UnityEngine.ScriptableObject
  307. // System.Type
  308. struct Type_t_StaticFields
  309. {
  310. // System.Reflection.Binder modreq(System.Runtime.CompilerServices.IsVolatile) System.Type::s_defaultBinder
  311. Binder_t91BFCE95A7057FADF4D8A1A342AFE52872246235* ___s_defaultBinder_0;
  312. // System.Char System.Type::Delimiter
  313. Il2CppChar ___Delimiter_1;
  314. // System.Type[] System.Type::EmptyTypes
  315. TypeU5BU5D_t97234E1129B564EB38B8D85CAC2AD8B5B9522FFB* ___EmptyTypes_2;
  316. // System.Object System.Type::Missing
  317. RuntimeObject* ___Missing_3;
  318. // System.Reflection.MemberFilter System.Type::FilterAttribute
  319. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterAttribute_4;
  320. // System.Reflection.MemberFilter System.Type::FilterName
  321. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterName_5;
  322. // System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase
  323. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterNameIgnoreCase_6;
  324. };
  325. // System.Type
  326. // System.ArgumentException
  327. // System.ArgumentException
  328. // System.ArgumentNullException
  329. // System.ArgumentNullException
  330. // UnityEngine.MonoBehaviour
  331. // UnityEngine.MonoBehaviour
  332. #ifdef __clang__
  333. #pragma clang diagnostic pop
  334. #endif
  335. // System.String UnityEngine.JsonUtility::ToJson(System.Object,System.Boolean)
  336. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53 (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method) ;
  337. // System.Void System.ArgumentException::.ctor(System.String)
  338. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentException__ctor_m026938A67AF9D36BB7ED27F80425D7194B514465 (ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263* __this, String_t* ___0_message, const RuntimeMethod* method) ;
  339. // System.String UnityEngine.JsonUtility::ToJsonInternal(System.Object,System.Boolean)
  340. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method) ;
  341. // System.Boolean System.String::IsNullOrEmpty(System.String)
  342. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_IsNullOrEmpty_mEA9E3FB005AC28FE02E69FCF95A7B8456192B478 (String_t* ___0_value, const RuntimeMethod* method) ;
  343. // System.Void System.ArgumentNullException::.ctor(System.String)
  344. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentNullException__ctor_m444AE141157E333844FC1A9500224C2F9FD24F4B (ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129* __this, String_t* ___0_paramName, const RuntimeMethod* method) ;
  345. // System.Boolean System.Type::get_IsAbstract()
  346. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Type_get_IsAbstract_m16FA83463867635ED9DECAE1C5F6BE96B4579CE5 (Type_t* __this, const RuntimeMethod* method) ;
  347. // System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
  348. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Type_t* Type_GetTypeFromHandle_m6062B81682F79A4D6DF2640692EE6D9987858C57 (RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B ___0_handle, const RuntimeMethod* method) ;
  349. // System.String System.String::Concat(System.String,System.String,System.String)
  350. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_m8855A6DE10F84DA7F4EC113CADDB59873A25573B (String_t* ___0_str0, String_t* ___1_str1, String_t* ___2_str2, const RuntimeMethod* method) ;
  351. // System.Object UnityEngine.JsonUtility::FromJsonInternal(System.String,System.Object,System.Type)
  352. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0 (String_t* ___0_json, RuntimeObject* ___1_objectToOverwrite, Type_t* ___2_type, const RuntimeMethod* method) ;
  353. #ifdef __clang__
  354. #pragma clang diagnostic push
  355. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  356. #pragma clang diagnostic ignored "-Wunused-variable"
  357. #endif
  358. #ifdef __clang__
  359. #pragma clang diagnostic pop
  360. #endif
  361. #ifdef __clang__
  362. #pragma clang diagnostic push
  363. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  364. #pragma clang diagnostic ignored "-Wunused-variable"
  365. #endif
  366. // System.String UnityEngine.JsonUtility::ToJsonInternal(System.Object,System.Boolean)
  367. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method)
  368. {
  369. typedef String_t* (*JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD_ftn) (RuntimeObject*, bool);
  370. static JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD_ftn _il2cpp_icall_func;
  371. if (!_il2cpp_icall_func)
  372. _il2cpp_icall_func = (JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.JsonUtility::ToJsonInternal(System.Object,System.Boolean)");
  373. String_t* icallRetVal = _il2cpp_icall_func(___0_obj, ___1_prettyPrint);
  374. return icallRetVal;
  375. }
  376. // System.Object UnityEngine.JsonUtility::FromJsonInternal(System.String,System.Object,System.Type)
  377. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0 (String_t* ___0_json, RuntimeObject* ___1_objectToOverwrite, Type_t* ___2_type, const RuntimeMethod* method)
  378. {
  379. typedef RuntimeObject* (*JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0_ftn) (String_t*, RuntimeObject*, Type_t*);
  380. static JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0_ftn _il2cpp_icall_func;
  381. if (!_il2cpp_icall_func)
  382. _il2cpp_icall_func = (JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.JsonUtility::FromJsonInternal(System.String,System.Object,System.Type)");
  383. RuntimeObject* icallRetVal = _il2cpp_icall_func(___0_json, ___1_objectToOverwrite, ___2_type);
  384. return icallRetVal;
  385. }
  386. // System.String UnityEngine.JsonUtility::ToJson(System.Object)
  387. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJson_m28CC6843B9D3723D88AD13EA3829B71FDE7826BA (RuntimeObject* ___0_obj, const RuntimeMethod* method)
  388. {
  389. String_t* V_0 = NULL;
  390. {
  391. RuntimeObject* L_0 = ___0_obj;
  392. String_t* L_1;
  393. L_1 = JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53(L_0, (bool)0, NULL);
  394. V_0 = L_1;
  395. goto IL_000b;
  396. }
  397. IL_000b:
  398. {
  399. String_t* L_2 = V_0;
  400. return L_2;
  401. }
  402. }
  403. // System.String UnityEngine.JsonUtility::ToJson(System.Object,System.Boolean)
  404. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53 (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method)
  405. {
  406. static bool s_Il2CppMethodInitialized;
  407. if (!s_Il2CppMethodInitialized)
  408. {
  409. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71_il2cpp_TypeInfo_var);
  410. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
  411. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_il2cpp_TypeInfo_var);
  412. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709);
  413. s_Il2CppMethodInitialized = true;
  414. }
  415. bool V_0 = false;
  416. String_t* V_1 = NULL;
  417. bool V_2 = false;
  418. int32_t G_B6_0 = 0;
  419. int32_t G_B8_0 = 0;
  420. {
  421. RuntimeObject* L_0 = ___0_obj;
  422. V_0 = (bool)((((RuntimeObject*)(RuntimeObject*)L_0) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
  423. bool L_1 = V_0;
  424. if (!L_1)
  425. {
  426. goto IL_0011;
  427. }
  428. }
  429. {
  430. V_1 = _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
  431. goto IL_004c;
  432. }
  433. IL_0011:
  434. {
  435. RuntimeObject* L_2 = ___0_obj;
  436. if (!((Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)IsInstClass((RuntimeObject*)L_2, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var)))
  437. {
  438. goto IL_0032;
  439. }
  440. }
  441. {
  442. RuntimeObject* L_3 = ___0_obj;
  443. if (((MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71*)IsInstClass((RuntimeObject*)L_3, MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71_il2cpp_TypeInfo_var)))
  444. {
  445. goto IL_002f;
  446. }
  447. }
  448. {
  449. RuntimeObject* L_4 = ___0_obj;
  450. G_B6_0 = ((((int32_t)((!(((RuntimeObject*)(ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A*)((ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A*)IsInstClass((RuntimeObject*)L_4, ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_il2cpp_TypeInfo_var))) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
  451. goto IL_0030;
  452. }
  453. IL_002f:
  454. {
  455. G_B6_0 = 0;
  456. }
  457. IL_0030:
  458. {
  459. G_B8_0 = G_B6_0;
  460. goto IL_0033;
  461. }
  462. IL_0032:
  463. {
  464. G_B8_0 = 0;
  465. }
  466. IL_0033:
  467. {
  468. V_2 = (bool)G_B8_0;
  469. bool L_5 = V_2;
  470. if (!L_5)
  471. {
  472. goto IL_0042;
  473. }
  474. }
  475. {
  476. ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263* L_6 = (ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263*)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var)));
  477. NullCheck(L_6);
  478. ArgumentException__ctor_m026938A67AF9D36BB7ED27F80425D7194B514465(L_6, ((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral8B9E56C5D95D7C3EED5199236F70D44573B11813)), NULL);
  479. IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53_RuntimeMethod_var)));
  480. }
  481. IL_0042:
  482. {
  483. RuntimeObject* L_7 = ___0_obj;
  484. bool L_8 = ___1_prettyPrint;
  485. String_t* L_9;
  486. L_9 = JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD(L_7, L_8, NULL);
  487. V_1 = L_9;
  488. goto IL_004c;
  489. }
  490. IL_004c:
  491. {
  492. String_t* L_10 = V_1;
  493. return L_10;
  494. }
  495. }
  496. // System.Object UnityEngine.JsonUtility::FromJson(System.String,System.Type)
  497. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A (String_t* ___0_json, Type_t* ___1_type, const RuntimeMethod* method)
  498. {
  499. static bool s_Il2CppMethodInitialized;
  500. if (!s_Il2CppMethodInitialized)
  501. {
  502. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_0_0_0_var);
  503. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Type_t_il2cpp_TypeInfo_var);
  504. s_Il2CppMethodInitialized = true;
  505. }
  506. bool V_0 = false;
  507. RuntimeObject* V_1 = NULL;
  508. bool V_2 = false;
  509. bool V_3 = false;
  510. int32_t G_B7_0 = 0;
  511. {
  512. String_t* L_0 = ___0_json;
  513. bool L_1;
  514. L_1 = String_IsNullOrEmpty_mEA9E3FB005AC28FE02E69FCF95A7B8456192B478(L_0, NULL);
  515. V_0 = L_1;
  516. bool L_2 = V_0;
  517. if (!L_2)
  518. {
  519. goto IL_000f;
  520. }
  521. }
  522. {
  523. V_1 = NULL;
  524. goto IL_0067;
  525. }
  526. IL_000f:
  527. {
  528. Type_t* L_3 = ___1_type;
  529. V_2 = (bool)((((RuntimeObject*)(Type_t*)L_3) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
  530. bool L_4 = V_2;
  531. if (!L_4)
  532. {
  533. goto IL_0022;
  534. }
  535. }
  536. {
  537. ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129* L_5 = (ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129*)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129_il2cpp_TypeInfo_var)));
  538. NullCheck(L_5);
  539. ArgumentNullException__ctor_m444AE141157E333844FC1A9500224C2F9FD24F4B(L_5, ((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteralF3C6C902DBF80139640F6554F0C3392016A8ADF7)), NULL);
  540. IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A_RuntimeMethod_var)));
  541. }
  542. IL_0022:
  543. {
  544. Type_t* L_6 = ___1_type;
  545. NullCheck(L_6);
  546. bool L_7;
  547. L_7 = Type_get_IsAbstract_m16FA83463867635ED9DECAE1C5F6BE96B4579CE5(L_6, NULL);
  548. if (L_7)
  549. {
  550. goto IL_003c;
  551. }
  552. }
  553. {
  554. Type_t* L_8 = ___1_type;
  555. RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B L_9 = { reinterpret_cast<intptr_t> (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_0_0_0_var) };
  556. il2cpp_codegen_runtime_class_init_inline(Type_t_il2cpp_TypeInfo_var);
  557. Type_t* L_10;
  558. L_10 = Type_GetTypeFromHandle_m6062B81682F79A4D6DF2640692EE6D9987858C57(L_9, NULL);
  559. NullCheck(L_8);
  560. bool L_11;
  561. L_11 = VirtualFuncInvoker1< bool, Type_t* >::Invoke(21 /* System.Boolean System.Type::IsSubclassOf(System.Type) */, L_8, L_10);
  562. G_B7_0 = ((int32_t)(L_11));
  563. goto IL_003d;
  564. }
  565. IL_003c:
  566. {
  567. G_B7_0 = 1;
  568. }
  569. IL_003d:
  570. {
  571. V_3 = (bool)G_B7_0;
  572. bool L_12 = V_3;
  573. if (!L_12)
  574. {
  575. goto IL_005c;
  576. }
  577. }
  578. {
  579. Type_t* L_13 = ___1_type;
  580. NullCheck(L_13);
  581. String_t* L_14;
  582. L_14 = VirtualFuncInvoker0< String_t* >::Invoke(8 /* System.String System.Reflection.MemberInfo::get_Name() */, L_13);
  583. String_t* L_15;
  584. L_15 = String_Concat_m8855A6DE10F84DA7F4EC113CADDB59873A25573B(((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral9149DCC4875937380DD00ED5471A7A1258254B95)), L_14, ((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral1A021298794A95A088D89F0DFEE478EB088FC94B)), NULL);
  585. ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263* L_16 = (ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263*)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var)));
  586. NullCheck(L_16);
  587. ArgumentException__ctor_m026938A67AF9D36BB7ED27F80425D7194B514465(L_16, L_15, NULL);
  588. IL2CPP_RAISE_MANAGED_EXCEPTION(L_16, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A_RuntimeMethod_var)));
  589. }
  590. IL_005c:
  591. {
  592. String_t* L_17 = ___0_json;
  593. Type_t* L_18 = ___1_type;
  594. RuntimeObject* L_19;
  595. L_19 = JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0(L_17, NULL, L_18, NULL);
  596. V_1 = L_19;
  597. goto IL_0067;
  598. }
  599. IL_0067:
  600. {
  601. RuntimeObject* L_20 = V_1;
  602. return L_20;
  603. }
  604. }
  605. #ifdef __clang__
  606. #pragma clang diagnostic pop
  607. #endif