UnityEngine.ImageConversionModule.cpp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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.Byte[]
  10. struct ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031;
  11. // System.String
  12. struct String_t;
  13. // UnityEngine.Texture2D
  14. struct Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4;
  15. // System.Void
  16. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  17. struct ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031;
  18. IL2CPP_EXTERN_C_BEGIN
  19. IL2CPP_EXTERN_C_END
  20. #ifdef __clang__
  21. #pragma clang diagnostic push
  22. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  23. #pragma clang diagnostic ignored "-Wunused-variable"
  24. #endif
  25. // <Module>
  26. struct U3CModuleU3E_t33B45E84B8820001E6F644E31DCC9BAEE6DCE23F
  27. {
  28. };
  29. struct Il2CppArrayBounds;
  30. // UnityEngine.ImageConversion
  31. struct ImageConversion_tD7B6C2CDCD3E1078708B1668B9695914A502C252 : public RuntimeObject
  32. {
  33. };
  34. // System.ValueType
  35. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  36. {
  37. };
  38. // Native definition for P/Invoke marshalling of System.ValueType
  39. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  40. {
  41. };
  42. // Native definition for COM marshalling of System.ValueType
  43. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  44. {
  45. };
  46. // System.Boolean
  47. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  48. {
  49. // System.Boolean System.Boolean::m_value
  50. bool ___m_value_0;
  51. };
  52. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  53. {
  54. // System.String System.Boolean::TrueString
  55. String_t* ___TrueString_5;
  56. // System.String System.Boolean::FalseString
  57. String_t* ___FalseString_6;
  58. };
  59. // System.Byte
  60. struct Byte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3
  61. {
  62. // System.Byte System.Byte::m_value
  63. uint8_t ___m_value_0;
  64. };
  65. // System.IntPtr
  66. struct IntPtr_t
  67. {
  68. // System.Void* System.IntPtr::m_value
  69. void* ___m_value_0;
  70. };
  71. struct IntPtr_t_StaticFields
  72. {
  73. // System.IntPtr System.IntPtr::Zero
  74. intptr_t ___Zero_1;
  75. };
  76. // UnityEngine.Object
  77. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
  78. {
  79. // System.IntPtr UnityEngine.Object::m_CachedPtr
  80. intptr_t ___m_CachedPtr_0;
  81. };
  82. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_StaticFields
  83. {
  84. // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
  85. int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
  86. };
  87. // Native definition for P/Invoke marshalling of UnityEngine.Object
  88. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  89. {
  90. intptr_t ___m_CachedPtr_0;
  91. };
  92. // Native definition for COM marshalling of UnityEngine.Object
  93. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  94. {
  95. intptr_t ___m_CachedPtr_0;
  96. };
  97. // UnityEngine.Texture
  98. struct Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  99. {
  100. };
  101. struct Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700_StaticFields
  102. {
  103. // System.Int32 UnityEngine.Texture::GenerateAllMips
  104. int32_t ___GenerateAllMips_4;
  105. };
  106. // UnityEngine.Texture2D
  107. struct Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4 : public Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700
  108. {
  109. };
  110. #ifdef __clang__
  111. #pragma clang diagnostic pop
  112. #endif
  113. // System.Byte[]
  114. struct ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031 : public RuntimeArray
  115. {
  116. ALIGN_FIELD (8) uint8_t m_Items[1];
  117. inline uint8_t GetAt(il2cpp_array_size_t index) const
  118. {
  119. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  120. return m_Items[index];
  121. }
  122. inline uint8_t* GetAddressAt(il2cpp_array_size_t index)
  123. {
  124. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  125. return m_Items + index;
  126. }
  127. inline void SetAt(il2cpp_array_size_t index, uint8_t value)
  128. {
  129. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  130. m_Items[index] = value;
  131. }
  132. inline uint8_t GetAtUnchecked(il2cpp_array_size_t index) const
  133. {
  134. return m_Items[index];
  135. }
  136. inline uint8_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
  137. {
  138. return m_Items + index;
  139. }
  140. inline void SetAtUnchecked(il2cpp_array_size_t index, uint8_t value)
  141. {
  142. m_Items[index] = value;
  143. }
  144. };
  145. #ifdef __clang__
  146. #pragma clang diagnostic push
  147. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  148. #pragma clang diagnostic ignored "-Wunused-variable"
  149. #endif
  150. #ifdef __clang__
  151. #pragma clang diagnostic pop
  152. #endif
  153. #ifdef __clang__
  154. #pragma clang diagnostic push
  155. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  156. #pragma clang diagnostic ignored "-Wunused-variable"
  157. #endif
  158. // System.Boolean UnityEngine.ImageConversion::LoadImage(UnityEngine.Texture2D,System.Byte[],System.Boolean)
  159. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ImageConversion_LoadImage_m292ADCEED268A0A0AAD532BAB8D1710CF0FC8AEF (Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* ___tex0, ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031* ___data1, bool ___markNonReadable2, const RuntimeMethod* method)
  160. {
  161. typedef bool (*ImageConversion_LoadImage_m292ADCEED268A0A0AAD532BAB8D1710CF0FC8AEF_ftn) (Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4*, ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031*, bool);
  162. static ImageConversion_LoadImage_m292ADCEED268A0A0AAD532BAB8D1710CF0FC8AEF_ftn _il2cpp_icall_func;
  163. if (!_il2cpp_icall_func)
  164. _il2cpp_icall_func = (ImageConversion_LoadImage_m292ADCEED268A0A0AAD532BAB8D1710CF0FC8AEF_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.ImageConversion::LoadImage(UnityEngine.Texture2D,System.Byte[],System.Boolean)");
  165. bool icallRetVal = _il2cpp_icall_func(___tex0, ___data1, ___markNonReadable2);
  166. return icallRetVal;
  167. }
  168. #ifdef __clang__
  169. #pragma clang diagnostic pop
  170. #endif