Bulk_System.Runtime.Serialization_0.cpp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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.Runtime.Serialization.DataContractAttribute
  18. struct DataContractAttribute_t412496005;
  19. // System.Runtime.Serialization.DataMemberAttribute
  20. struct DataMemberAttribute_t1339837472;
  21. // System.String
  22. struct String_t;
  23. // System.Runtime.Serialization.EnumMemberAttribute
  24. struct EnumMemberAttribute_t1084128815;
  25. // System.Char[]
  26. struct CharU5BU5D_t3528271667;
  27. #ifndef U3CMODULEU3E_T692745557_H
  28. #define U3CMODULEU3E_T692745557_H
  29. #ifdef __clang__
  30. #pragma clang diagnostic push
  31. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  32. #pragma clang diagnostic ignored "-Wunused-variable"
  33. #endif
  34. // <Module>
  35. struct U3CModuleU3E_t692745557
  36. {
  37. public:
  38. public:
  39. };
  40. #ifdef __clang__
  41. #pragma clang diagnostic pop
  42. #endif
  43. #endif // U3CMODULEU3E_T692745557_H
  44. #ifndef RUNTIMEOBJECT_H
  45. #define RUNTIMEOBJECT_H
  46. #ifdef __clang__
  47. #pragma clang diagnostic push
  48. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  49. #pragma clang diagnostic ignored "-Wunused-variable"
  50. #endif
  51. // System.Object
  52. #ifdef __clang__
  53. #pragma clang diagnostic pop
  54. #endif
  55. #endif // RUNTIMEOBJECT_H
  56. struct Il2CppArrayBounds;
  57. #ifndef RUNTIMEARRAY_H
  58. #define RUNTIMEARRAY_H
  59. #ifdef __clang__
  60. #pragma clang diagnostic push
  61. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  62. #pragma clang diagnostic ignored "-Wunused-variable"
  63. #endif
  64. // System.Array
  65. #ifdef __clang__
  66. #pragma clang diagnostic pop
  67. #endif
  68. #endif // RUNTIMEARRAY_H
  69. #ifndef ATTRIBUTE_T861562559_H
  70. #define ATTRIBUTE_T861562559_H
  71. #ifdef __clang__
  72. #pragma clang diagnostic push
  73. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  74. #pragma clang diagnostic ignored "-Wunused-variable"
  75. #endif
  76. // System.Attribute
  77. struct Attribute_t861562559 : public RuntimeObject
  78. {
  79. public:
  80. public:
  81. };
  82. #ifdef __clang__
  83. #pragma clang diagnostic pop
  84. #endif
  85. #endif // ATTRIBUTE_T861562559_H
  86. #ifndef STRING_T_H
  87. #define STRING_T_H
  88. #ifdef __clang__
  89. #pragma clang diagnostic push
  90. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  91. #pragma clang diagnostic ignored "-Wunused-variable"
  92. #endif
  93. // System.String
  94. struct String_t : public RuntimeObject
  95. {
  96. public:
  97. // System.Int32 System.String::length
  98. int32_t ___length_0;
  99. // System.Char System.String::start_char
  100. Il2CppChar ___start_char_1;
  101. public:
  102. inline static int32_t get_offset_of_length_0() { return static_cast<int32_t>(offsetof(String_t, ___length_0)); }
  103. inline int32_t get_length_0() const { return ___length_0; }
  104. inline int32_t* get_address_of_length_0() { return &___length_0; }
  105. inline void set_length_0(int32_t value)
  106. {
  107. ___length_0 = value;
  108. }
  109. inline static int32_t get_offset_of_start_char_1() { return static_cast<int32_t>(offsetof(String_t, ___start_char_1)); }
  110. inline Il2CppChar get_start_char_1() const { return ___start_char_1; }
  111. inline Il2CppChar* get_address_of_start_char_1() { return &___start_char_1; }
  112. inline void set_start_char_1(Il2CppChar value)
  113. {
  114. ___start_char_1 = value;
  115. }
  116. };
  117. struct String_t_StaticFields
  118. {
  119. public:
  120. // System.String System.String::Empty
  121. String_t* ___Empty_2;
  122. // System.Char[] System.String::WhiteChars
  123. CharU5BU5D_t3528271667* ___WhiteChars_3;
  124. public:
  125. inline static int32_t get_offset_of_Empty_2() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_2)); }
  126. inline String_t* get_Empty_2() const { return ___Empty_2; }
  127. inline String_t** get_address_of_Empty_2() { return &___Empty_2; }
  128. inline void set_Empty_2(String_t* value)
  129. {
  130. ___Empty_2 = value;
  131. Il2CppCodeGenWriteBarrier((&___Empty_2), value);
  132. }
  133. inline static int32_t get_offset_of_WhiteChars_3() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___WhiteChars_3)); }
  134. inline CharU5BU5D_t3528271667* get_WhiteChars_3() const { return ___WhiteChars_3; }
  135. inline CharU5BU5D_t3528271667** get_address_of_WhiteChars_3() { return &___WhiteChars_3; }
  136. inline void set_WhiteChars_3(CharU5BU5D_t3528271667* value)
  137. {
  138. ___WhiteChars_3 = value;
  139. Il2CppCodeGenWriteBarrier((&___WhiteChars_3), value);
  140. }
  141. };
  142. #ifdef __clang__
  143. #pragma clang diagnostic pop
  144. #endif
  145. #endif // STRING_T_H
  146. #ifndef VALUETYPE_T3640485471_H
  147. #define VALUETYPE_T3640485471_H
  148. #ifdef __clang__
  149. #pragma clang diagnostic push
  150. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  151. #pragma clang diagnostic ignored "-Wunused-variable"
  152. #endif
  153. // System.ValueType
  154. struct ValueType_t3640485471 : public RuntimeObject
  155. {
  156. public:
  157. public:
  158. };
  159. #ifdef __clang__
  160. #pragma clang diagnostic pop
  161. #endif
  162. // Native definition for P/Invoke marshalling of System.ValueType
  163. struct ValueType_t3640485471_marshaled_pinvoke
  164. {
  165. };
  166. // Native definition for COM marshalling of System.ValueType
  167. struct ValueType_t3640485471_marshaled_com
  168. {
  169. };
  170. #endif // VALUETYPE_T3640485471_H
  171. #ifndef DATAMEMBERATTRIBUTE_T1339837472_H
  172. #define DATAMEMBERATTRIBUTE_T1339837472_H
  173. #ifdef __clang__
  174. #pragma clang diagnostic push
  175. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  176. #pragma clang diagnostic ignored "-Wunused-variable"
  177. #endif
  178. // System.Runtime.Serialization.DataMemberAttribute
  179. struct DataMemberAttribute_t1339837472 : public Attribute_t861562559
  180. {
  181. public:
  182. // System.Boolean System.Runtime.Serialization.DataMemberAttribute::is_required
  183. bool ___is_required_0;
  184. // System.Boolean System.Runtime.Serialization.DataMemberAttribute::emit_default
  185. bool ___emit_default_1;
  186. // System.String System.Runtime.Serialization.DataMemberAttribute::name
  187. String_t* ___name_2;
  188. // System.Int32 System.Runtime.Serialization.DataMemberAttribute::order
  189. int32_t ___order_3;
  190. public:
  191. inline static int32_t get_offset_of_is_required_0() { return static_cast<int32_t>(offsetof(DataMemberAttribute_t1339837472, ___is_required_0)); }
  192. inline bool get_is_required_0() const { return ___is_required_0; }
  193. inline bool* get_address_of_is_required_0() { return &___is_required_0; }
  194. inline void set_is_required_0(bool value)
  195. {
  196. ___is_required_0 = value;
  197. }
  198. inline static int32_t get_offset_of_emit_default_1() { return static_cast<int32_t>(offsetof(DataMemberAttribute_t1339837472, ___emit_default_1)); }
  199. inline bool get_emit_default_1() const { return ___emit_default_1; }
  200. inline bool* get_address_of_emit_default_1() { return &___emit_default_1; }
  201. inline void set_emit_default_1(bool value)
  202. {
  203. ___emit_default_1 = value;
  204. }
  205. inline static int32_t get_offset_of_name_2() { return static_cast<int32_t>(offsetof(DataMemberAttribute_t1339837472, ___name_2)); }
  206. inline String_t* get_name_2() const { return ___name_2; }
  207. inline String_t** get_address_of_name_2() { return &___name_2; }
  208. inline void set_name_2(String_t* value)
  209. {
  210. ___name_2 = value;
  211. Il2CppCodeGenWriteBarrier((&___name_2), value);
  212. }
  213. inline static int32_t get_offset_of_order_3() { return static_cast<int32_t>(offsetof(DataMemberAttribute_t1339837472, ___order_3)); }
  214. inline int32_t get_order_3() const { return ___order_3; }
  215. inline int32_t* get_address_of_order_3() { return &___order_3; }
  216. inline void set_order_3(int32_t value)
  217. {
  218. ___order_3 = value;
  219. }
  220. };
  221. #ifdef __clang__
  222. #pragma clang diagnostic pop
  223. #endif
  224. #endif // DATAMEMBERATTRIBUTE_T1339837472_H
  225. #ifndef INT32_T2950945753_H
  226. #define INT32_T2950945753_H
  227. #ifdef __clang__
  228. #pragma clang diagnostic push
  229. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  230. #pragma clang diagnostic ignored "-Wunused-variable"
  231. #endif
  232. // System.Int32
  233. struct Int32_t2950945753
  234. {
  235. public:
  236. // System.Int32 System.Int32::m_value
  237. int32_t ___m_value_2;
  238. public:
  239. inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Int32_t2950945753, ___m_value_2)); }
  240. inline int32_t get_m_value_2() const { return ___m_value_2; }
  241. inline int32_t* get_address_of_m_value_2() { return &___m_value_2; }
  242. inline void set_m_value_2(int32_t value)
  243. {
  244. ___m_value_2 = value;
  245. }
  246. };
  247. #ifdef __clang__
  248. #pragma clang diagnostic pop
  249. #endif
  250. #endif // INT32_T2950945753_H
  251. #ifndef ENUMMEMBERATTRIBUTE_T1084128815_H
  252. #define ENUMMEMBERATTRIBUTE_T1084128815_H
  253. #ifdef __clang__
  254. #pragma clang diagnostic push
  255. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  256. #pragma clang diagnostic ignored "-Wunused-variable"
  257. #endif
  258. // System.Runtime.Serialization.EnumMemberAttribute
  259. struct EnumMemberAttribute_t1084128815 : public Attribute_t861562559
  260. {
  261. public:
  262. // System.String System.Runtime.Serialization.EnumMemberAttribute::value
  263. String_t* ___value_0;
  264. public:
  265. inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(EnumMemberAttribute_t1084128815, ___value_0)); }
  266. inline String_t* get_value_0() const { return ___value_0; }
  267. inline String_t** get_address_of_value_0() { return &___value_0; }
  268. inline void set_value_0(String_t* value)
  269. {
  270. ___value_0 = value;
  271. Il2CppCodeGenWriteBarrier((&___value_0), value);
  272. }
  273. };
  274. #ifdef __clang__
  275. #pragma clang diagnostic pop
  276. #endif
  277. #endif // ENUMMEMBERATTRIBUTE_T1084128815_H
  278. #ifndef BOOLEAN_T97287965_H
  279. #define BOOLEAN_T97287965_H
  280. #ifdef __clang__
  281. #pragma clang diagnostic push
  282. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  283. #pragma clang diagnostic ignored "-Wunused-variable"
  284. #endif
  285. // System.Boolean
  286. struct Boolean_t97287965
  287. {
  288. public:
  289. // System.Boolean System.Boolean::m_value
  290. bool ___m_value_2;
  291. public:
  292. inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Boolean_t97287965, ___m_value_2)); }
  293. inline bool get_m_value_2() const { return ___m_value_2; }
  294. inline bool* get_address_of_m_value_2() { return &___m_value_2; }
  295. inline void set_m_value_2(bool value)
  296. {
  297. ___m_value_2 = value;
  298. }
  299. };
  300. struct Boolean_t97287965_StaticFields
  301. {
  302. public:
  303. // System.String System.Boolean::FalseString
  304. String_t* ___FalseString_0;
  305. // System.String System.Boolean::TrueString
  306. String_t* ___TrueString_1;
  307. public:
  308. inline static int32_t get_offset_of_FalseString_0() { return static_cast<int32_t>(offsetof(Boolean_t97287965_StaticFields, ___FalseString_0)); }
  309. inline String_t* get_FalseString_0() const { return ___FalseString_0; }
  310. inline String_t** get_address_of_FalseString_0() { return &___FalseString_0; }
  311. inline void set_FalseString_0(String_t* value)
  312. {
  313. ___FalseString_0 = value;
  314. Il2CppCodeGenWriteBarrier((&___FalseString_0), value);
  315. }
  316. inline static int32_t get_offset_of_TrueString_1() { return static_cast<int32_t>(offsetof(Boolean_t97287965_StaticFields, ___TrueString_1)); }
  317. inline String_t* get_TrueString_1() const { return ___TrueString_1; }
  318. inline String_t** get_address_of_TrueString_1() { return &___TrueString_1; }
  319. inline void set_TrueString_1(String_t* value)
  320. {
  321. ___TrueString_1 = value;
  322. Il2CppCodeGenWriteBarrier((&___TrueString_1), value);
  323. }
  324. };
  325. #ifdef __clang__
  326. #pragma clang diagnostic pop
  327. #endif
  328. #endif // BOOLEAN_T97287965_H
  329. #ifndef DATACONTRACTATTRIBUTE_T412496005_H
  330. #define DATACONTRACTATTRIBUTE_T412496005_H
  331. #ifdef __clang__
  332. #pragma clang diagnostic push
  333. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  334. #pragma clang diagnostic ignored "-Wunused-variable"
  335. #endif
  336. // System.Runtime.Serialization.DataContractAttribute
  337. struct DataContractAttribute_t412496005 : public Attribute_t861562559
  338. {
  339. public:
  340. // System.Boolean System.Runtime.Serialization.DataContractAttribute::<IsReference>k__BackingField
  341. bool ___U3CIsReferenceU3Ek__BackingField_0;
  342. public:
  343. inline static int32_t get_offset_of_U3CIsReferenceU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(DataContractAttribute_t412496005, ___U3CIsReferenceU3Ek__BackingField_0)); }
  344. inline bool get_U3CIsReferenceU3Ek__BackingField_0() const { return ___U3CIsReferenceU3Ek__BackingField_0; }
  345. inline bool* get_address_of_U3CIsReferenceU3Ek__BackingField_0() { return &___U3CIsReferenceU3Ek__BackingField_0; }
  346. inline void set_U3CIsReferenceU3Ek__BackingField_0(bool value)
  347. {
  348. ___U3CIsReferenceU3Ek__BackingField_0 = value;
  349. }
  350. };
  351. #ifdef __clang__
  352. #pragma clang diagnostic pop
  353. #endif
  354. #endif // DATACONTRACTATTRIBUTE_T412496005_H
  355. #ifdef __clang__
  356. #pragma clang diagnostic push
  357. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  358. #pragma clang diagnostic ignored "-Wunused-variable"
  359. #endif
  360. #ifdef __clang__
  361. #pragma clang diagnostic pop
  362. #endif
  363. #ifdef __clang__
  364. #pragma clang diagnostic push
  365. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  366. #pragma clang diagnostic ignored "-Wunused-variable"
  367. #endif
  368. // System.Boolean System.Runtime.Serialization.DataContractAttribute::get_IsReference()
  369. extern "C" IL2CPP_METHOD_ATTR bool DataContractAttribute_get_IsReference_m3839282120 (DataContractAttribute_t412496005 * __this, const RuntimeMethod* method)
  370. {
  371. {
  372. bool L_0 = __this->get_U3CIsReferenceU3Ek__BackingField_0();
  373. return L_0;
  374. }
  375. }
  376. #ifdef __clang__
  377. #pragma clang diagnostic pop
  378. #endif
  379. #ifdef __clang__
  380. #pragma clang diagnostic push
  381. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  382. #pragma clang diagnostic ignored "-Wunused-variable"
  383. #endif
  384. // System.Boolean System.Runtime.Serialization.DataMemberAttribute::get_EmitDefaultValue()
  385. extern "C" IL2CPP_METHOD_ATTR bool DataMemberAttribute_get_EmitDefaultValue_m3473790697 (DataMemberAttribute_t1339837472 * __this, const RuntimeMethod* method)
  386. {
  387. {
  388. bool L_0 = __this->get_emit_default_1();
  389. return L_0;
  390. }
  391. }
  392. // System.Boolean System.Runtime.Serialization.DataMemberAttribute::get_IsRequired()
  393. extern "C" IL2CPP_METHOD_ATTR bool DataMemberAttribute_get_IsRequired_m4045505283 (DataMemberAttribute_t1339837472 * __this, const RuntimeMethod* method)
  394. {
  395. {
  396. bool L_0 = __this->get_is_required_0();
  397. return L_0;
  398. }
  399. }
  400. // System.String System.Runtime.Serialization.DataMemberAttribute::get_Name()
  401. extern "C" IL2CPP_METHOD_ATTR String_t* DataMemberAttribute_get_Name_m4184456524 (DataMemberAttribute_t1339837472 * __this, const RuntimeMethod* method)
  402. {
  403. {
  404. String_t* L_0 = __this->get_name_2();
  405. return L_0;
  406. }
  407. }
  408. // System.Int32 System.Runtime.Serialization.DataMemberAttribute::get_Order()
  409. extern "C" IL2CPP_METHOD_ATTR int32_t DataMemberAttribute_get_Order_m3753346419 (DataMemberAttribute_t1339837472 * __this, const RuntimeMethod* method)
  410. {
  411. {
  412. int32_t L_0 = __this->get_order_3();
  413. return L_0;
  414. }
  415. }
  416. #ifdef __clang__
  417. #pragma clang diagnostic pop
  418. #endif
  419. #ifdef __clang__
  420. #pragma clang diagnostic push
  421. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  422. #pragma clang diagnostic ignored "-Wunused-variable"
  423. #endif
  424. // System.String System.Runtime.Serialization.EnumMemberAttribute::get_Value()
  425. extern "C" IL2CPP_METHOD_ATTR String_t* EnumMemberAttribute_get_Value_m452041758 (EnumMemberAttribute_t1084128815 * __this, const RuntimeMethod* method)
  426. {
  427. {
  428. String_t* L_0 = __this->get_value_0();
  429. return L_0;
  430. }
  431. }
  432. #ifdef __clang__
  433. #pragma clang diagnostic pop
  434. #endif