Bulk_UnityEngine.JSONSerializeModule_0.cpp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. #include "il2cpp-config.h"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <cstring>
  8. #include <string.h>
  9. #include <stdio.h>
  10. #include <cmath>
  11. #include <limits>
  12. #include <assert.h>
  13. #include <stdint.h>
  14. #include "il2cpp-class-internals.h"
  15. #include "codegen/il2cpp-codegen.h"
  16. #include "il2cpp-object-internals.h"
  17. // System.String
  18. struct String_t;
  19. // System.Type
  20. struct Type_t;
  21. // System.Char[]
  22. struct CharU5BU5D_t3528271667;
  23. // System.Void
  24. struct Void_t1185182177;
  25. // System.Type[]
  26. struct TypeU5BU5D_t3940880105;
  27. // System.Reflection.MemberFilter
  28. struct MemberFilter_t426314064;
  29. #ifndef RUNTIMEOBJECT_H
  30. #define RUNTIMEOBJECT_H
  31. #ifdef __clang__
  32. #pragma clang diagnostic push
  33. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  34. #pragma clang diagnostic ignored "-Wunused-variable"
  35. #endif
  36. // System.Object
  37. #ifdef __clang__
  38. #pragma clang diagnostic pop
  39. #endif
  40. #endif // RUNTIMEOBJECT_H
  41. #ifndef U3CMODULEU3E_T692745544_H
  42. #define U3CMODULEU3E_T692745544_H
  43. #ifdef __clang__
  44. #pragma clang diagnostic push
  45. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  46. #pragma clang diagnostic ignored "-Wunused-variable"
  47. #endif
  48. // <Module>
  49. struct U3CModuleU3E_t692745544
  50. {
  51. public:
  52. public:
  53. };
  54. #ifdef __clang__
  55. #pragma clang diagnostic pop
  56. #endif
  57. #endif // U3CMODULEU3E_T692745544_H
  58. #ifndef VALUETYPE_T3640485471_H
  59. #define VALUETYPE_T3640485471_H
  60. #ifdef __clang__
  61. #pragma clang diagnostic push
  62. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  63. #pragma clang diagnostic ignored "-Wunused-variable"
  64. #endif
  65. // System.ValueType
  66. struct ValueType_t3640485471 : public RuntimeObject
  67. {
  68. public:
  69. public:
  70. };
  71. #ifdef __clang__
  72. #pragma clang diagnostic pop
  73. #endif
  74. // Native definition for P/Invoke marshalling of System.ValueType
  75. struct ValueType_t3640485471_marshaled_pinvoke
  76. {
  77. };
  78. // Native definition for COM marshalling of System.ValueType
  79. struct ValueType_t3640485471_marshaled_com
  80. {
  81. };
  82. #endif // VALUETYPE_T3640485471_H
  83. #ifndef MEMBERINFO_T_H
  84. #define MEMBERINFO_T_H
  85. #ifdef __clang__
  86. #pragma clang diagnostic push
  87. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  88. #pragma clang diagnostic ignored "-Wunused-variable"
  89. #endif
  90. // System.Reflection.MemberInfo
  91. struct MemberInfo_t : public RuntimeObject
  92. {
  93. public:
  94. public:
  95. };
  96. #ifdef __clang__
  97. #pragma clang diagnostic pop
  98. #endif
  99. #endif // MEMBERINFO_T_H
  100. struct Il2CppArrayBounds;
  101. #ifndef RUNTIMEARRAY_H
  102. #define RUNTIMEARRAY_H
  103. #ifdef __clang__
  104. #pragma clang diagnostic push
  105. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  106. #pragma clang diagnostic ignored "-Wunused-variable"
  107. #endif
  108. // System.Array
  109. #ifdef __clang__
  110. #pragma clang diagnostic pop
  111. #endif
  112. #endif // RUNTIMEARRAY_H
  113. #ifndef JSONUTILITY_T1659017423_H
  114. #define JSONUTILITY_T1659017423_H
  115. #ifdef __clang__
  116. #pragma clang diagnostic push
  117. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  118. #pragma clang diagnostic ignored "-Wunused-variable"
  119. #endif
  120. // UnityEngine.JsonUtility
  121. struct JsonUtility_t1659017423 : public RuntimeObject
  122. {
  123. public:
  124. public:
  125. };
  126. #ifdef __clang__
  127. #pragma clang diagnostic pop
  128. #endif
  129. #endif // JSONUTILITY_T1659017423_H
  130. #ifndef STRING_T_H
  131. #define STRING_T_H
  132. #ifdef __clang__
  133. #pragma clang diagnostic push
  134. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  135. #pragma clang diagnostic ignored "-Wunused-variable"
  136. #endif
  137. // System.String
  138. struct String_t : public RuntimeObject
  139. {
  140. public:
  141. // System.Int32 System.String::length
  142. int32_t ___length_0;
  143. // System.Char System.String::start_char
  144. Il2CppChar ___start_char_1;
  145. public:
  146. inline static int32_t get_offset_of_length_0() { return static_cast<int32_t>(offsetof(String_t, ___length_0)); }
  147. inline int32_t get_length_0() const { return ___length_0; }
  148. inline int32_t* get_address_of_length_0() { return &___length_0; }
  149. inline void set_length_0(int32_t value)
  150. {
  151. ___length_0 = value;
  152. }
  153. inline static int32_t get_offset_of_start_char_1() { return static_cast<int32_t>(offsetof(String_t, ___start_char_1)); }
  154. inline Il2CppChar get_start_char_1() const { return ___start_char_1; }
  155. inline Il2CppChar* get_address_of_start_char_1() { return &___start_char_1; }
  156. inline void set_start_char_1(Il2CppChar value)
  157. {
  158. ___start_char_1 = value;
  159. }
  160. };
  161. struct String_t_StaticFields
  162. {
  163. public:
  164. // System.String System.String::Empty
  165. String_t* ___Empty_2;
  166. // System.Char[] System.String::WhiteChars
  167. CharU5BU5D_t3528271667* ___WhiteChars_3;
  168. public:
  169. inline static int32_t get_offset_of_Empty_2() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_2)); }
  170. inline String_t* get_Empty_2() const { return ___Empty_2; }
  171. inline String_t** get_address_of_Empty_2() { return &___Empty_2; }
  172. inline void set_Empty_2(String_t* value)
  173. {
  174. ___Empty_2 = value;
  175. Il2CppCodeGenWriteBarrier((&___Empty_2), value);
  176. }
  177. inline static int32_t get_offset_of_WhiteChars_3() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___WhiteChars_3)); }
  178. inline CharU5BU5D_t3528271667* get_WhiteChars_3() const { return ___WhiteChars_3; }
  179. inline CharU5BU5D_t3528271667** get_address_of_WhiteChars_3() { return &___WhiteChars_3; }
  180. inline void set_WhiteChars_3(CharU5BU5D_t3528271667* value)
  181. {
  182. ___WhiteChars_3 = value;
  183. Il2CppCodeGenWriteBarrier((&___WhiteChars_3), value);
  184. }
  185. };
  186. #ifdef __clang__
  187. #pragma clang diagnostic pop
  188. #endif
  189. #endif // STRING_T_H
  190. #ifndef ENUM_T4135868527_H
  191. #define ENUM_T4135868527_H
  192. #ifdef __clang__
  193. #pragma clang diagnostic push
  194. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  195. #pragma clang diagnostic ignored "-Wunused-variable"
  196. #endif
  197. // System.Enum
  198. struct Enum_t4135868527 : public ValueType_t3640485471
  199. {
  200. public:
  201. public:
  202. };
  203. struct Enum_t4135868527_StaticFields
  204. {
  205. public:
  206. // System.Char[] System.Enum::split_char
  207. CharU5BU5D_t3528271667* ___split_char_0;
  208. public:
  209. inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___split_char_0)); }
  210. inline CharU5BU5D_t3528271667* get_split_char_0() const { return ___split_char_0; }
  211. inline CharU5BU5D_t3528271667** get_address_of_split_char_0() { return &___split_char_0; }
  212. inline void set_split_char_0(CharU5BU5D_t3528271667* value)
  213. {
  214. ___split_char_0 = value;
  215. Il2CppCodeGenWriteBarrier((&___split_char_0), value);
  216. }
  217. };
  218. #ifdef __clang__
  219. #pragma clang diagnostic pop
  220. #endif
  221. // Native definition for P/Invoke marshalling of System.Enum
  222. struct Enum_t4135868527_marshaled_pinvoke
  223. {
  224. };
  225. // Native definition for COM marshalling of System.Enum
  226. struct Enum_t4135868527_marshaled_com
  227. {
  228. };
  229. #endif // ENUM_T4135868527_H
  230. #ifndef INTPTR_T_H
  231. #define INTPTR_T_H
  232. #ifdef __clang__
  233. #pragma clang diagnostic push
  234. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  235. #pragma clang diagnostic ignored "-Wunused-variable"
  236. #endif
  237. // System.IntPtr
  238. struct IntPtr_t
  239. {
  240. public:
  241. // System.Void* System.IntPtr::m_value
  242. void* ___m_value_0;
  243. public:
  244. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
  245. inline void* get_m_value_0() const { return ___m_value_0; }
  246. inline void** get_address_of_m_value_0() { return &___m_value_0; }
  247. inline void set_m_value_0(void* value)
  248. {
  249. ___m_value_0 = value;
  250. }
  251. };
  252. struct IntPtr_t_StaticFields
  253. {
  254. public:
  255. // System.IntPtr System.IntPtr::Zero
  256. intptr_t ___Zero_1;
  257. public:
  258. inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
  259. inline intptr_t get_Zero_1() const { return ___Zero_1; }
  260. inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
  261. inline void set_Zero_1(intptr_t value)
  262. {
  263. ___Zero_1 = value;
  264. }
  265. };
  266. #ifdef __clang__
  267. #pragma clang diagnostic pop
  268. #endif
  269. #endif // INTPTR_T_H
  270. #ifndef RUNTIMETYPEHANDLE_T3027515415_H
  271. #define RUNTIMETYPEHANDLE_T3027515415_H
  272. #ifdef __clang__
  273. #pragma clang diagnostic push
  274. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  275. #pragma clang diagnostic ignored "-Wunused-variable"
  276. #endif
  277. // System.RuntimeTypeHandle
  278. struct RuntimeTypeHandle_t3027515415
  279. {
  280. public:
  281. // System.IntPtr System.RuntimeTypeHandle::value
  282. intptr_t ___value_0;
  283. public:
  284. inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeTypeHandle_t3027515415, ___value_0)); }
  285. inline intptr_t get_value_0() const { return ___value_0; }
  286. inline intptr_t* get_address_of_value_0() { return &___value_0; }
  287. inline void set_value_0(intptr_t value)
  288. {
  289. ___value_0 = value;
  290. }
  291. };
  292. #ifdef __clang__
  293. #pragma clang diagnostic pop
  294. #endif
  295. #endif // RUNTIMETYPEHANDLE_T3027515415_H
  296. #ifndef BINDINGFLAGS_T2721792723_H
  297. #define BINDINGFLAGS_T2721792723_H
  298. #ifdef __clang__
  299. #pragma clang diagnostic push
  300. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  301. #pragma clang diagnostic ignored "-Wunused-variable"
  302. #endif
  303. // System.Reflection.BindingFlags
  304. struct BindingFlags_t2721792723
  305. {
  306. public:
  307. // System.Int32 System.Reflection.BindingFlags::value__
  308. int32_t ___value___1;
  309. public:
  310. inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(BindingFlags_t2721792723, ___value___1)); }
  311. inline int32_t get_value___1() const { return ___value___1; }
  312. inline int32_t* get_address_of_value___1() { return &___value___1; }
  313. inline void set_value___1(int32_t value)
  314. {
  315. ___value___1 = value;
  316. }
  317. };
  318. #ifdef __clang__
  319. #pragma clang diagnostic pop
  320. #endif
  321. #endif // BINDINGFLAGS_T2721792723_H
  322. #ifndef TYPE_T_H
  323. #define TYPE_T_H
  324. #ifdef __clang__
  325. #pragma clang diagnostic push
  326. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  327. #pragma clang diagnostic ignored "-Wunused-variable"
  328. #endif
  329. // System.Type
  330. struct Type_t : public MemberInfo_t
  331. {
  332. public:
  333. // System.RuntimeTypeHandle System.Type::_impl
  334. RuntimeTypeHandle_t3027515415 ____impl_1;
  335. public:
  336. inline static int32_t get_offset_of__impl_1() { return static_cast<int32_t>(offsetof(Type_t, ____impl_1)); }
  337. inline RuntimeTypeHandle_t3027515415 get__impl_1() const { return ____impl_1; }
  338. inline RuntimeTypeHandle_t3027515415 * get_address_of__impl_1() { return &____impl_1; }
  339. inline void set__impl_1(RuntimeTypeHandle_t3027515415 value)
  340. {
  341. ____impl_1 = value;
  342. }
  343. };
  344. struct Type_t_StaticFields
  345. {
  346. public:
  347. // System.Char System.Type::Delimiter
  348. Il2CppChar ___Delimiter_2;
  349. // System.Type[] System.Type::EmptyTypes
  350. TypeU5BU5D_t3940880105* ___EmptyTypes_3;
  351. // System.Reflection.MemberFilter System.Type::FilterAttribute
  352. MemberFilter_t426314064 * ___FilterAttribute_4;
  353. // System.Reflection.MemberFilter System.Type::FilterName
  354. MemberFilter_t426314064 * ___FilterName_5;
  355. // System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase
  356. MemberFilter_t426314064 * ___FilterNameIgnoreCase_6;
  357. // System.Object System.Type::Missing
  358. RuntimeObject * ___Missing_7;
  359. public:
  360. inline static int32_t get_offset_of_Delimiter_2() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Delimiter_2)); }
  361. inline Il2CppChar get_Delimiter_2() const { return ___Delimiter_2; }
  362. inline Il2CppChar* get_address_of_Delimiter_2() { return &___Delimiter_2; }
  363. inline void set_Delimiter_2(Il2CppChar value)
  364. {
  365. ___Delimiter_2 = value;
  366. }
  367. inline static int32_t get_offset_of_EmptyTypes_3() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___EmptyTypes_3)); }
  368. inline TypeU5BU5D_t3940880105* get_EmptyTypes_3() const { return ___EmptyTypes_3; }
  369. inline TypeU5BU5D_t3940880105** get_address_of_EmptyTypes_3() { return &___EmptyTypes_3; }
  370. inline void set_EmptyTypes_3(TypeU5BU5D_t3940880105* value)
  371. {
  372. ___EmptyTypes_3 = value;
  373. Il2CppCodeGenWriteBarrier((&___EmptyTypes_3), value);
  374. }
  375. inline static int32_t get_offset_of_FilterAttribute_4() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterAttribute_4)); }
  376. inline MemberFilter_t426314064 * get_FilterAttribute_4() const { return ___FilterAttribute_4; }
  377. inline MemberFilter_t426314064 ** get_address_of_FilterAttribute_4() { return &___FilterAttribute_4; }
  378. inline void set_FilterAttribute_4(MemberFilter_t426314064 * value)
  379. {
  380. ___FilterAttribute_4 = value;
  381. Il2CppCodeGenWriteBarrier((&___FilterAttribute_4), value);
  382. }
  383. inline static int32_t get_offset_of_FilterName_5() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterName_5)); }
  384. inline MemberFilter_t426314064 * get_FilterName_5() const { return ___FilterName_5; }
  385. inline MemberFilter_t426314064 ** get_address_of_FilterName_5() { return &___FilterName_5; }
  386. inline void set_FilterName_5(MemberFilter_t426314064 * value)
  387. {
  388. ___FilterName_5 = value;
  389. Il2CppCodeGenWriteBarrier((&___FilterName_5), value);
  390. }
  391. inline static int32_t get_offset_of_FilterNameIgnoreCase_6() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterNameIgnoreCase_6)); }
  392. inline MemberFilter_t426314064 * get_FilterNameIgnoreCase_6() const { return ___FilterNameIgnoreCase_6; }
  393. inline MemberFilter_t426314064 ** get_address_of_FilterNameIgnoreCase_6() { return &___FilterNameIgnoreCase_6; }
  394. inline void set_FilterNameIgnoreCase_6(MemberFilter_t426314064 * value)
  395. {
  396. ___FilterNameIgnoreCase_6 = value;
  397. Il2CppCodeGenWriteBarrier((&___FilterNameIgnoreCase_6), value);
  398. }
  399. inline static int32_t get_offset_of_Missing_7() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Missing_7)); }
  400. inline RuntimeObject * get_Missing_7() const { return ___Missing_7; }
  401. inline RuntimeObject ** get_address_of_Missing_7() { return &___Missing_7; }
  402. inline void set_Missing_7(RuntimeObject * value)
  403. {
  404. ___Missing_7 = value;
  405. Il2CppCodeGenWriteBarrier((&___Missing_7), value);
  406. }
  407. };
  408. #ifdef __clang__
  409. #pragma clang diagnostic pop
  410. #endif
  411. #endif // TYPE_T_H
  412. #ifdef __clang__
  413. #pragma clang diagnostic push
  414. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  415. #pragma clang diagnostic ignored "-Wunused-variable"
  416. #endif
  417. #ifdef __clang__
  418. #pragma clang diagnostic pop
  419. #endif
  420. #ifdef __clang__
  421. #pragma clang diagnostic push
  422. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  423. #pragma clang diagnostic ignored "-Wunused-variable"
  424. #endif
  425. // System.Object UnityEngine.JsonUtility::FromJson(System.String,System.Type)
  426. extern "C" IL2CPP_METHOD_ATTR RuntimeObject * JsonUtility_FromJson_m4191471030 (RuntimeObject * __this /* static, unused */, String_t* ___json0, Type_t * ___type1, const RuntimeMethod* method)
  427. {
  428. typedef RuntimeObject * (*JsonUtility_FromJson_m4191471030_ftn) (String_t*, Type_t *);
  429. static JsonUtility_FromJson_m4191471030_ftn _il2cpp_icall_func;
  430. if (!_il2cpp_icall_func)
  431. _il2cpp_icall_func = (JsonUtility_FromJson_m4191471030_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.JsonUtility::FromJson(System.String,System.Type)");
  432. RuntimeObject * retVal = _il2cpp_icall_func(___json0, ___type1);
  433. return retVal;
  434. }
  435. #ifdef __clang__
  436. #pragma clang diagnostic pop
  437. #endif