UnityEngine.UnityWebRequestTextureModule.cpp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. struct CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB;
  9. struct DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB;
  10. struct DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C;
  11. struct String_t;
  12. struct Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4;
  13. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  14. IL2CPP_EXTERN_C_BEGIN
  15. IL2CPP_EXTERN_C_END
  16. #ifdef __clang__
  17. #pragma clang diagnostic push
  18. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  19. #pragma clang diagnostic ignored "-Wunused-variable"
  20. #endif
  21. struct U3CModuleU3E_tAEEA45345F4FE6CCC29A863B181BFCCC6EDBCAC7
  22. {
  23. };
  24. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  25. {
  26. };
  27. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  28. {
  29. };
  30. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  31. {
  32. };
  33. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  34. {
  35. bool ___m_value;
  36. };
  37. struct Enum_t2A1A94B24E3B776EEF4E5E485E290BB9D4D072E2 : public ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F
  38. {
  39. };
  40. struct Enum_t2A1A94B24E3B776EEF4E5E485E290BB9D4D072E2_marshaled_pinvoke
  41. {
  42. };
  43. struct Enum_t2A1A94B24E3B776EEF4E5E485E290BB9D4D072E2_marshaled_com
  44. {
  45. };
  46. struct IntPtr_t
  47. {
  48. void* ___m_value;
  49. };
  50. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  51. {
  52. union
  53. {
  54. struct
  55. {
  56. };
  57. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  58. };
  59. };
  60. struct Allocator_t996642592271AAD9EE688F142741D512C07B5824
  61. {
  62. int32_t ___value__;
  63. };
  64. struct DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB : public RuntimeObject
  65. {
  66. intptr_t ___m_Ptr;
  67. };
  68. struct DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB_marshaled_pinvoke
  69. {
  70. intptr_t ___m_Ptr;
  71. };
  72. struct DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB_marshaled_com
  73. {
  74. intptr_t ___m_Ptr;
  75. };
  76. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
  77. {
  78. intptr_t ___m_CachedPtr;
  79. };
  80. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  81. {
  82. intptr_t ___m_CachedPtr;
  83. };
  84. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  85. {
  86. intptr_t ___m_CachedPtr;
  87. };
  88. struct NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF
  89. {
  90. void* ___m_Buffer;
  91. int32_t ___m_Length;
  92. int32_t ___m_AllocatorLabel;
  93. };
  94. struct Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  95. {
  96. };
  97. struct DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C : public DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB
  98. {
  99. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF ___m_NativeData;
  100. bool ___mNonReadable;
  101. };
  102. struct DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_pinvoke : public DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB_marshaled_pinvoke
  103. {
  104. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF ___m_NativeData;
  105. int32_t ___mNonReadable;
  106. };
  107. struct DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_com : public DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB_marshaled_com
  108. {
  109. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF ___m_NativeData;
  110. int32_t ___mNonReadable;
  111. };
  112. struct Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4 : public Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700
  113. {
  114. };
  115. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  116. {
  117. String_t* ___TrueString;
  118. String_t* ___FalseString;
  119. };
  120. struct IntPtr_t_StaticFields
  121. {
  122. intptr_t ___Zero;
  123. };
  124. #ifdef __clang__
  125. #pragma clang diagnostic pop
  126. #endif
  127. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR intptr_t DownloadHandlerTexture_Create_m6DBB03DC64DB11F35862D7A4F6B4A814B8531A21 (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* ___0_obj, bool ___1_readable, const RuntimeMethod* method) ;
  128. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandler__ctor_m833275AC5FCAC0BFB4F2D5C1C0C7FD76416CE496 (DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB* __this, const RuntimeMethod* method) ;
  129. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandlerTexture_InternalCreateTexture_m2BC0B138561A55B9CCAB694E4447888B21D1B47A (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, bool ___0_readable, const RuntimeMethod* method) ;
  130. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF DownloadHandler_InternalGetNativeArray_mE622083BC3893B43BC8E7C467A1895664C3B6B89 (DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB* ___0_dh, NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF* ___1_nativeArray, const RuntimeMethod* method) ;
  131. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandler_DisposeNativeArray_m96514980A0A48921D17C059CAC2CC0CDA27B2398 (NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF* ___0_data, const RuntimeMethod* method) ;
  132. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandler_Dispose_mD5D4CCF0C2DFF1CB57C9B3A0EF4213ECB9F8F607 (DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB* __this, const RuntimeMethod* method) ;
  133. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* DownloadHandlerTexture_InternalGetTextureNative_m9244CDF2A5DE7B9971121CAC5642DD5FEA877688 (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, const RuntimeMethod* method) ;
  134. #ifdef __clang__
  135. #pragma clang diagnostic push
  136. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  137. #pragma clang diagnostic ignored "-Wunused-variable"
  138. #endif
  139. #ifdef __clang__
  140. #pragma clang diagnostic pop
  141. #endif
  142. #ifdef __clang__
  143. #pragma clang diagnostic push
  144. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  145. #pragma clang diagnostic ignored "-Wunused-variable"
  146. #endif
  147. IL2CPP_EXTERN_C void DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshal_pinvoke(const DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C& unmarshaled, DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_pinvoke& marshaled)
  148. {
  149. marshaled.___m_NativeData = unmarshaled.___m_NativeData;
  150. marshaled.___mNonReadable = static_cast<int32_t>(unmarshaled.___mNonReadable);
  151. marshaled.___m_Ptr = unmarshaled.___m_Ptr;
  152. }
  153. IL2CPP_EXTERN_C void DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshal_pinvoke_back(const DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_pinvoke& marshaled, DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C& unmarshaled)
  154. {
  155. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF unmarshaledm_NativeData_temp_0;
  156. memset((&unmarshaledm_NativeData_temp_0), 0, sizeof(unmarshaledm_NativeData_temp_0));
  157. unmarshaledm_NativeData_temp_0 = marshaled.___m_NativeData;
  158. unmarshaled.___m_NativeData = unmarshaledm_NativeData_temp_0;
  159. bool unmarshaledmNonReadable_temp_1 = false;
  160. unmarshaledmNonReadable_temp_1 = static_cast<bool>(marshaled.___mNonReadable);
  161. unmarshaled.___mNonReadable = unmarshaledmNonReadable_temp_1;
  162. intptr_t unmarshaledm_Ptr_temp_2;
  163. memset((&unmarshaledm_Ptr_temp_2), 0, sizeof(unmarshaledm_Ptr_temp_2));
  164. unmarshaledm_Ptr_temp_2 = marshaled.___m_Ptr;
  165. unmarshaled.___m_Ptr = unmarshaledm_Ptr_temp_2;
  166. }
  167. IL2CPP_EXTERN_C void DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshal_pinvoke_cleanup(DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_pinvoke& marshaled)
  168. {
  169. }
  170. IL2CPP_EXTERN_C void DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshal_com(const DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C& unmarshaled, DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_com& marshaled)
  171. {
  172. marshaled.___m_NativeData = unmarshaled.___m_NativeData;
  173. marshaled.___mNonReadable = static_cast<int32_t>(unmarshaled.___mNonReadable);
  174. marshaled.___m_Ptr = unmarshaled.___m_Ptr;
  175. }
  176. IL2CPP_EXTERN_C void DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshal_com_back(const DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_com& marshaled, DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C& unmarshaled)
  177. {
  178. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF unmarshaledm_NativeData_temp_0;
  179. memset((&unmarshaledm_NativeData_temp_0), 0, sizeof(unmarshaledm_NativeData_temp_0));
  180. unmarshaledm_NativeData_temp_0 = marshaled.___m_NativeData;
  181. unmarshaled.___m_NativeData = unmarshaledm_NativeData_temp_0;
  182. bool unmarshaledmNonReadable_temp_1 = false;
  183. unmarshaledmNonReadable_temp_1 = static_cast<bool>(marshaled.___mNonReadable);
  184. unmarshaled.___mNonReadable = unmarshaledmNonReadable_temp_1;
  185. intptr_t unmarshaledm_Ptr_temp_2;
  186. memset((&unmarshaledm_Ptr_temp_2), 0, sizeof(unmarshaledm_Ptr_temp_2));
  187. unmarshaledm_Ptr_temp_2 = marshaled.___m_Ptr;
  188. unmarshaled.___m_Ptr = unmarshaledm_Ptr_temp_2;
  189. }
  190. IL2CPP_EXTERN_C void DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshal_com_cleanup(DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C_marshaled_com& marshaled)
  191. {
  192. }
  193. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR intptr_t DownloadHandlerTexture_Create_m6DBB03DC64DB11F35862D7A4F6B4A814B8531A21 (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* ___0_obj, bool ___1_readable, const RuntimeMethod* method)
  194. {
  195. typedef intptr_t (*DownloadHandlerTexture_Create_m6DBB03DC64DB11F35862D7A4F6B4A814B8531A21_ftn) (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C*, bool);
  196. static DownloadHandlerTexture_Create_m6DBB03DC64DB11F35862D7A4F6B4A814B8531A21_ftn _il2cpp_icall_func;
  197. if (!_il2cpp_icall_func)
  198. _il2cpp_icall_func = (DownloadHandlerTexture_Create_m6DBB03DC64DB11F35862D7A4F6B4A814B8531A21_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Networking.DownloadHandlerTexture::Create(UnityEngine.Networking.DownloadHandlerTexture,System.Boolean)");
  199. intptr_t icallRetVal = _il2cpp_icall_func(___0_obj, ___1_readable);
  200. return icallRetVal;
  201. }
  202. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandlerTexture_InternalCreateTexture_m2BC0B138561A55B9CCAB694E4447888B21D1B47A (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, bool ___0_readable, const RuntimeMethod* method)
  203. {
  204. {
  205. bool L_0 = ___0_readable;
  206. intptr_t L_1;
  207. L_1 = DownloadHandlerTexture_Create_m6DBB03DC64DB11F35862D7A4F6B4A814B8531A21(__this, L_0, NULL);
  208. ((DownloadHandler_t1B56C7D3F65D97A1E4B566A14A1E783EA8AE4EBB*)__this)->___m_Ptr = L_1;
  209. return;
  210. }
  211. }
  212. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandlerTexture__ctor_m29775B9DEA2C54AE7EFED3550C31AB4D5CF58AD8 (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, bool ___0_readable, const RuntimeMethod* method)
  213. {
  214. {
  215. DownloadHandler__ctor_m833275AC5FCAC0BFB4F2D5C1C0C7FD76416CE496(__this, NULL);
  216. bool L_0 = ___0_readable;
  217. DownloadHandlerTexture_InternalCreateTexture_m2BC0B138561A55B9CCAB694E4447888B21D1B47A(__this, L_0, NULL);
  218. bool L_1 = ___0_readable;
  219. __this->___mNonReadable = (bool)((((int32_t)L_1) == ((int32_t)0))? 1 : 0);
  220. return;
  221. }
  222. }
  223. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF DownloadHandlerTexture_GetNativeData_m241724A953EC64E660235D0A0374EFACE1B0779A (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, const RuntimeMethod* method)
  224. {
  225. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF V_0;
  226. memset((&V_0), 0, sizeof(V_0));
  227. {
  228. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF* L_0 = (NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF*)(&__this->___m_NativeData);
  229. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF L_1;
  230. L_1 = DownloadHandler_InternalGetNativeArray_mE622083BC3893B43BC8E7C467A1895664C3B6B89(__this, L_0, NULL);
  231. V_0 = L_1;
  232. goto IL_0010;
  233. }
  234. IL_0010:
  235. {
  236. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF L_2 = V_0;
  237. return L_2;
  238. }
  239. }
  240. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DownloadHandlerTexture_Dispose_m8B9EB903164BC27743144F900697F7B98A4725EB (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, const RuntimeMethod* method)
  241. {
  242. {
  243. NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF* L_0 = (NativeArray_1_t81F55263465517B73C455D3400CF67B4BADD85CF*)(&__this->___m_NativeData);
  244. DownloadHandler_DisposeNativeArray_m96514980A0A48921D17C059CAC2CC0CDA27B2398(L_0, NULL);
  245. DownloadHandler_Dispose_mD5D4CCF0C2DFF1CB57C9B3A0EF4213ECB9F8F607(__this, NULL);
  246. return;
  247. }
  248. }
  249. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* DownloadHandlerTexture_get_texture_m170B5539995EB5984E98E426F52983589F7BEB7C (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, const RuntimeMethod* method)
  250. {
  251. Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* V_0 = NULL;
  252. {
  253. Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* L_0;
  254. L_0 = DownloadHandlerTexture_InternalGetTextureNative_m9244CDF2A5DE7B9971121CAC5642DD5FEA877688(__this, NULL);
  255. V_0 = L_0;
  256. goto IL_000a;
  257. }
  258. IL_000a:
  259. {
  260. Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* L_1 = V_0;
  261. return L_1;
  262. }
  263. }
  264. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* DownloadHandlerTexture_InternalGetTextureNative_m9244CDF2A5DE7B9971121CAC5642DD5FEA877688 (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C* __this, const RuntimeMethod* method)
  265. {
  266. typedef Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* (*DownloadHandlerTexture_InternalGetTextureNative_m9244CDF2A5DE7B9971121CAC5642DD5FEA877688_ftn) (DownloadHandlerTexture_t45E2D719000AA1594E648810F0B57A77FA7C568C*);
  267. static DownloadHandlerTexture_InternalGetTextureNative_m9244CDF2A5DE7B9971121CAC5642DD5FEA877688_ftn _il2cpp_icall_func;
  268. if (!_il2cpp_icall_func)
  269. _il2cpp_icall_func = (DownloadHandlerTexture_InternalGetTextureNative_m9244CDF2A5DE7B9971121CAC5642DD5FEA877688_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Networking.DownloadHandlerTexture::InternalGetTextureNative()");
  270. Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* icallRetVal = _il2cpp_icall_func(__this);
  271. return icallRetVal;
  272. }
  273. #ifdef __clang__
  274. #pragma clang diagnostic pop
  275. #endif