System.Runtime.CompilerServices.Unsafe.cpp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. #include <stdint.h>
  9. // System.Attribute
  10. struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71;
  11. // System.Runtime.CompilerServices.IsReadOnlyAttribute
  12. struct IsReadOnlyAttribute_t75F14734D884760E87E4E418E13381FD5554D37C;
  13. // System.Runtime.Versioning.NonVersionableAttribute
  14. struct NonVersionableAttribute_tBF0FCC22DD1A14C727E1AC2704F0110EB9339C7E;
  15. IL2CPP_EXTERN_C_BEGIN
  16. IL2CPP_EXTERN_C_END
  17. #ifdef __clang__
  18. #pragma clang diagnostic push
  19. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  20. #pragma clang diagnostic ignored "-Wunused-variable"
  21. #endif
  22. // <Module>
  23. struct U3CModuleU3E_t04C47C4B911CC65BBB7D0C5581B48A56765C78AB
  24. {
  25. public:
  26. public:
  27. };
  28. // System.Object
  29. struct Il2CppArrayBounds;
  30. // System.Array
  31. // System.Attribute
  32. struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 : public RuntimeObject
  33. {
  34. public:
  35. public:
  36. };
  37. // System.Runtime.CompilerServices.Unsafe
  38. struct Unsafe_tED9F0D541A095073113CD8F8F377D81179DFD0C4 : public RuntimeObject
  39. {
  40. public:
  41. public:
  42. };
  43. // System.ValueType
  44. struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject
  45. {
  46. public:
  47. public:
  48. };
  49. // Native definition for P/Invoke marshalling of System.ValueType
  50. struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke
  51. {
  52. };
  53. // Native definition for COM marshalling of System.ValueType
  54. struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com
  55. {
  56. };
  57. // System.Byte
  58. struct Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056
  59. {
  60. public:
  61. // System.Byte System.Byte::m_value
  62. uint8_t ___m_value_0;
  63. public:
  64. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056, ___m_value_0)); }
  65. inline uint8_t get_m_value_0() const { return ___m_value_0; }
  66. inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
  67. inline void set_m_value_0(uint8_t value)
  68. {
  69. ___m_value_0 = value;
  70. }
  71. };
  72. // System.Runtime.CompilerServices.IsReadOnlyAttribute
  73. struct IsReadOnlyAttribute_t75F14734D884760E87E4E418E13381FD5554D37C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
  74. {
  75. public:
  76. public:
  77. };
  78. // System.Runtime.Versioning.NonVersionableAttribute
  79. struct NonVersionableAttribute_tBF0FCC22DD1A14C727E1AC2704F0110EB9339C7E : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
  80. {
  81. public:
  82. public:
  83. };
  84. // System.UInt32
  85. struct UInt32_tE60352A06233E4E69DD198BCC67142159F686B15
  86. {
  87. public:
  88. // System.UInt32 System.UInt32::m_value
  89. uint32_t ___m_value_0;
  90. public:
  91. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt32_tE60352A06233E4E69DD198BCC67142159F686B15, ___m_value_0)); }
  92. inline uint32_t get_m_value_0() const { return ___m_value_0; }
  93. inline uint32_t* get_address_of_m_value_0() { return &___m_value_0; }
  94. inline void set_m_value_0(uint32_t value)
  95. {
  96. ___m_value_0 = value;
  97. }
  98. };
  99. // System.Void
  100. struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5
  101. {
  102. public:
  103. union
  104. {
  105. struct
  106. {
  107. };
  108. uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1];
  109. };
  110. public:
  111. };
  112. #ifdef __clang__
  113. #pragma clang diagnostic pop
  114. #endif
  115. // System.Void System.Attribute::.ctor()
  116. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Attribute__ctor_m5C1862A7DFC2C25A4797A8C5F681FBB5CB53ECE1 (Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 * __this, const RuntimeMethod* method);
  117. #ifdef __clang__
  118. #pragma clang diagnostic push
  119. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  120. #pragma clang diagnostic ignored "-Wunused-variable"
  121. #endif
  122. #ifdef __clang__
  123. #pragma clang diagnostic pop
  124. #endif
  125. #ifdef __clang__
  126. #pragma clang diagnostic push
  127. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  128. #pragma clang diagnostic ignored "-Wunused-variable"
  129. #endif
  130. // System.Void System.Runtime.CompilerServices.IsReadOnlyAttribute::.ctor()
  131. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IsReadOnlyAttribute__ctor_m835F2A578DB494301E752B9F715E5595CF841B3B (IsReadOnlyAttribute_t75F14734D884760E87E4E418E13381FD5554D37C * __this, const RuntimeMethod* method)
  132. {
  133. {
  134. Attribute__ctor_m5C1862A7DFC2C25A4797A8C5F681FBB5CB53ECE1(__this, /*hidden argument*/NULL);
  135. return;
  136. }
  137. }
  138. #ifdef __clang__
  139. #pragma clang diagnostic pop
  140. #endif
  141. #ifdef __clang__
  142. #pragma clang diagnostic push
  143. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  144. #pragma clang diagnostic ignored "-Wunused-variable"
  145. #endif
  146. // System.Void System.Runtime.Versioning.NonVersionableAttribute::.ctor()
  147. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NonVersionableAttribute__ctor_m76289A4A00F259E5B5FC95BA62D1CB6D13466EA8 (NonVersionableAttribute_tBF0FCC22DD1A14C727E1AC2704F0110EB9339C7E * __this, const RuntimeMethod* method)
  148. {
  149. {
  150. Attribute__ctor_m5C1862A7DFC2C25A4797A8C5F681FBB5CB53ECE1(__this, /*hidden argument*/NULL);
  151. return;
  152. }
  153. }
  154. #ifdef __clang__
  155. #pragma clang diagnostic pop
  156. #endif
  157. #ifdef __clang__
  158. #pragma clang diagnostic push
  159. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  160. #pragma clang diagnostic ignored "-Wunused-variable"
  161. #endif
  162. // System.Void System.Runtime.CompilerServices.Unsafe::CopyBlock(System.Byte&,System.Byte&,System.UInt32)
  163. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Unsafe_CopyBlock_mEB2CB6E517E5DB6C204029FD2E458B110AEE8FC7 (uint8_t* ___destination0, uint8_t* ___source1, uint32_t ___byteCount2, const RuntimeMethod* method)
  164. {
  165. {
  166. uint8_t* L_0 = ___destination0;
  167. uint8_t* L_1 = ___source1;
  168. uint32_t L_2 = ___byteCount2;
  169. il2cpp_codegen_memcpy(L_0, L_1, L_2);
  170. return;
  171. }
  172. }
  173. // System.Void System.Runtime.CompilerServices.Unsafe::CopyBlockUnaligned(System.Byte&,System.Byte&,System.UInt32)
  174. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Unsafe_CopyBlockUnaligned_m4B9A634A3C08AEED469CA7150F24B1B553A0216C (uint8_t* ___destination0, uint8_t* ___source1, uint32_t ___byteCount2, const RuntimeMethod* method)
  175. {
  176. {
  177. uint8_t* L_0 = ___destination0;
  178. uint8_t* L_1 = ___source1;
  179. uint32_t L_2 = ___byteCount2;
  180. il2cpp_codegen_memcpy(L_0, L_1, L_2);
  181. return;
  182. }
  183. }
  184. // System.Void System.Runtime.CompilerServices.Unsafe::InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)
  185. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Unsafe_InitBlockUnaligned_mDBC18343453EDA9D3974E125987D6774C5257F2F (void* ___startAddress0, uint8_t ___value1, uint32_t ___byteCount2, const RuntimeMethod* method)
  186. {
  187. {
  188. void* L_0 = ___startAddress0;
  189. uint8_t L_1 = ___value1;
  190. uint32_t L_2 = ___byteCount2;
  191. il2cpp_codegen_memset(L_0, L_1, L_2);
  192. return;
  193. }
  194. }
  195. // System.Void System.Runtime.CompilerServices.Unsafe::InitBlockUnaligned(System.Byte&,System.Byte,System.UInt32)
  196. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Unsafe_InitBlockUnaligned_m68B5C8F29E67BD60711F6E9A841EB06C08B3D406 (uint8_t* ___startAddress0, uint8_t ___value1, uint32_t ___byteCount2, const RuntimeMethod* method)
  197. {
  198. {
  199. uint8_t* L_0 = ___startAddress0;
  200. uint8_t L_1 = ___value1;
  201. uint32_t L_2 = ___byteCount2;
  202. il2cpp_codegen_memset(L_0, L_1, L_2);
  203. return;
  204. }
  205. }
  206. #ifdef __clang__
  207. #pragma clang diagnostic pop
  208. #endif