@nativescript/canvas 2.0.0-alpha.5 → 2.0.0-alpha.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/Canvas/common.d.ts +213 -25
  2. package/Canvas/common.js +702 -452
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +12 -1
  5. package/Canvas/index.android.js +162 -49
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +13 -0
  8. package/Canvas/index.ios.d.ts +9 -4
  9. package/Canvas/index.ios.js +166 -103
  10. package/Canvas/index.ios.js.map +1 -1
  11. package/Canvas2D/CanvasGradient/index.d.ts +1 -3
  12. package/Canvas2D/CanvasGradient/index.js +1 -10
  13. package/Canvas2D/CanvasGradient/index.js.map +1 -1
  14. package/Canvas2D/CanvasPattern/index.d.ts +1 -3
  15. package/Canvas2D/CanvasPattern/index.js +1 -10
  16. package/Canvas2D/CanvasPattern/index.js.map +1 -1
  17. package/Canvas2D/CanvasRenderingContext2D/index.d.ts +7 -3
  18. package/Canvas2D/CanvasRenderingContext2D/index.js +132 -233
  19. package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
  20. package/Canvas2D/DOMMatrix/index.js +3 -3
  21. package/Canvas2D/DOMMatrix/index.js.map +1 -1
  22. package/Canvas2D/ImageData/index.js +6 -6
  23. package/Canvas2D/ImageData/index.js.map +1 -1
  24. package/Canvas2D/Path2D/index.d.ts +0 -2
  25. package/Canvas2D/Path2D/index.js +32 -42
  26. package/Canvas2D/Path2D/index.js.map +1 -1
  27. package/Dom/Paint.js +2 -3
  28. package/Dom/Paint.js.map +1 -1
  29. package/Dom/shapes/Circle.js +1 -2
  30. package/Dom/shapes/Circle.js.map +1 -1
  31. package/Dom/shapes/Points.js +1 -2
  32. package/Dom/shapes/Points.js.map +1 -1
  33. package/ImageAsset/index.d.ts +2 -2
  34. package/ImageAsset/index.js +33 -37
  35. package/ImageAsset/index.js.map +1 -1
  36. package/ImageBitmap/index.d.ts +0 -2
  37. package/ImageBitmap/index.js +47 -33
  38. package/ImageBitmap/index.js.map +1 -1
  39. package/LICENSE +201 -0
  40. package/SVG/SVG.js +1 -1
  41. package/SVG/SVG.js.map +1 -1
  42. package/TextDecoder/index.d.ts +0 -2
  43. package/TextDecoder/index.js +3 -12
  44. package/TextDecoder/index.js.map +1 -1
  45. package/TextEncoder/index.d.ts +0 -2
  46. package/TextEncoder/index.js +4 -13
  47. package/TextEncoder/index.js.map +1 -1
  48. package/WebGL/WebGLExtensions/index.d.ts +4 -12
  49. package/WebGL/WebGLExtensions/index.js +27 -77
  50. package/WebGL/WebGLExtensions/index.js.map +1 -1
  51. package/WebGL/WebGLProgram.d.ts +0 -1
  52. package/WebGL/WebGLProgram.js +0 -3
  53. package/WebGL/WebGLProgram.js.map +1 -1
  54. package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
  55. package/WebGL/WebGLRenderingContext/common.js +3 -13
  56. package/WebGL/WebGLRenderingContext/common.js.map +1 -1
  57. package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
  58. package/WebGL/WebGLRenderingContext/index.js +354 -728
  59. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  60. package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
  61. package/WebGL2/WebGL2RenderingContext/common.js +2 -2
  62. package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
  63. package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
  64. package/WebGL2/WebGL2RenderingContext/index.js +116 -285
  65. package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
  66. package/angular/esm2020/index.mjs +4 -4
  67. package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
  68. package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
  69. package/angular/package.json +2 -2
  70. package/index.js.map +1 -1
  71. package/package.json +3 -2
  72. package/platforms/android/canvas-release.aar +0 -0
  73. package/platforms/android/include.gradle +15 -0
  74. package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
  75. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  76. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +135 -68
  77. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  78. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  79. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2774 -70
  80. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  81. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  82. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5851 -2555
  83. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +44 -24
  84. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  85. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +44 -24
  86. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  87. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  88. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +270 -136
  89. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  90. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2774 -70
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  95. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5851 -2555
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +44 -24
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  98. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +44 -24
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5851 -2555
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +44 -24
  101. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  102. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +44 -24
  103. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
  104. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  105. package/platforms/ios/Podfile +5 -2
  106. package/platforms/ios/build.xcconfig +3 -3
  107. package/platforms/ios/src/CanvasModule.h +0 -2
  108. package/platforms/ios/src/CanvasModule.mm +4 -4
  109. package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
  110. package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
  111. package/platforms/ios/src/cpp/Caches.cpp +35 -0
  112. package/platforms/ios/src/cpp/Caches.h +190 -0
  113. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
  114. package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
  115. package/platforms/ios/src/cpp/Common.h +30 -0
  116. package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
  117. package/platforms/ios/src/cpp/Helpers.h +336 -38
  118. package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
  119. package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
  120. package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
  121. package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
  122. package/platforms/ios/src/cpp/JSICallback.h +83 -5
  123. package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
  124. package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
  125. package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
  126. package/platforms/ios/src/cpp/ObjectWrapperImpl.h +31 -0
  127. package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
  128. package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
  129. package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
  130. package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
  131. package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
  132. package/platforms/ios/src/cpp/RafImpl.h +11 -8
  133. package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
  134. package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
  135. package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
  136. package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
  137. package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
  138. package/platforms/ios/src/cpp/URLImpl.h +121 -0
  139. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
  140. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
  141. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
  142. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
  143. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2841 -0
  144. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1331 -21
  145. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
  146. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
  147. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
  148. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
  149. package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
  150. package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
  151. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
  152. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
  153. package/platforms/ios/src/cpp/gl.h +57 -7
  154. package/platforms/ios/src/cpp/gl3stub.c +425 -0
  155. package/platforms/ios/src/cpp/gl3stub.h +665 -0
  156. package/platforms/ios/src/cpp/gles3jni.h +37 -0
  157. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  158. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
  159. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
  160. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
  161. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
  162. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
  163. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
  164. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
  165. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
  166. package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
  167. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
  168. package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
  169. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
  170. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
  171. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
  172. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
  173. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
  174. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +26 -12
  175. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
  176. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
  177. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
  178. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
  179. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
  180. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
  181. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
  182. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
  183. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
  184. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
  185. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
  186. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
  187. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
  188. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
  189. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
  190. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
  191. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
  192. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
  193. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
  194. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
  195. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
  196. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
  197. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
  198. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
  199. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
  200. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
  201. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
  202. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +131 -14
  203. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
  204. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
  205. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4533 -0
  206. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1427 -342
  207. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
  208. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
  209. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
  210. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
  211. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
  212. package/platforms/ios/src/module.modulemap +1 -0
  213. package/{pods → src-native/ios}/NativeScript.podspec +12 -25
  214. package/typings/objc!CanvasNative.d.ts +2038 -0
  215. package/typings/objc!CanvasNative.js +1 -0
  216. package/typings/objc!CanvasNative.js.map +1 -0
  217. package/utils.d.ts +3 -1
  218. package/utils.js +7 -20
  219. package/utils.js.map +1 -1
  220. package/angular/nativescript-canvas-angular.d.ts +0 -5
  221. package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
  222. package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
  223. package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
  224. package/platforms/ios/src/cpp/RafImpl.mm +0 -10
  225. package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
  226. package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
  227. package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
  228. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6132
  229. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2859
  230. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
  231. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
  232. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1975
  233. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
  234. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
  235. package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
  236. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
  237. package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
  238. package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
  239. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
  240. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
  241. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
  242. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
  243. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
  244. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
  245. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
  246. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
  247. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
  248. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
  249. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
  250. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
  251. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
  252. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
  253. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
  254. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
  255. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
  256. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
  257. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
  258. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
  259. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
  260. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
  261. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
  262. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4556
  263. package/pods/Headers/jsi/decorator.h +0 -770
  264. package/pods/Headers/jsi/instrumentation.h +0 -117
  265. package/pods/Headers/jsi/jsi-inl.h +0 -338
  266. package/pods/Headers/jsi/jsi.h +0 -1571
  267. package/pods/Headers/jsi/jsilib.h +0 -59
  268. package/pods/Headers/jsi/threadsafe.h +0 -79
  269. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  270. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  271. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  272. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  273. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  274. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  275. /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
  276. /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
  277. /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
  278. /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
  279. /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
  280. /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
  281. /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
  282. /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
  283. /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
  284. /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
  285. /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
  286. /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
  287. /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
  288. /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
  289. /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
  290. /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
  291. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
  292. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
  293. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
  294. /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
  295. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
  296. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
  297. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
  298. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
  299. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
  300. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
  301. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
  302. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
  303. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
  304. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
  305. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
  306. /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
  307. /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
  308. /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
  309. /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
  310. /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
  311. /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
  312. /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
  313. /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
  314. /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
  315. /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
  316. /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
  317. /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
  318. /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
  319. /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
  320. /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
  321. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
  322. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
  323. /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
  324. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
  325. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
  326. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
  327. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
  328. /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
  329. /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
  330. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
  331. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
  332. /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
  333. /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
  334. /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
  335. /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
  336. /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
  337. /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
  338. /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
  339. /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
  340. /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
  341. /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
  342. /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
  343. /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
  344. /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
  345. /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
  346. /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
  347. /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
  348. /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
  349. /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
  350. /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
  351. /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
  352. /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
  353. /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
  354. /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
  355. /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
  356. /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
  357. /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
  358. /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
  359. /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
  360. /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
  361. /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
  362. /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
  363. /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
  364. /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
  365. /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
  366. /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
  367. /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
  368. /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
  369. /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
  370. /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
  371. /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
  372. /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
  373. /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
  374. /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
  375. /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
  376. /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
  377. /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
  378. /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
  379. /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
  380. /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
  381. /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
  382. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
  383. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
  384. /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
  385. /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
  386. /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
  387. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
  388. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
  389. /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
  390. /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
  391. /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
  392. /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
  393. /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
  394. /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
  395. /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
  396. /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
  397. /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
  398. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
  399. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
  400. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
  401. /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
  402. /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
  403. /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
  404. /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
  405. /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
  406. /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
  407. /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
  408. /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
  409. /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
  410. /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
  411. /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
  412. /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
  413. /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
  414. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
  415. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
  416. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
  417. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
  418. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
  419. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
  420. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
  421. /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
  422. /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
  423. /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
  424. /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
  425. /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
  426. /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
  427. /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
  428. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
  429. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
  430. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
  431. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
  432. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
  433. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
  434. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
  435. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
  436. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
  437. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
  438. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
  439. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
  440. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
  441. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
  442. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
  443. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
  444. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
  445. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
  446. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
  447. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
  448. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
  449. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
  450. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
  451. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
  452. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
  453. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
  454. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
  455. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
  456. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
  457. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
  458. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
  459. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
  460. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
  461. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
  462. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
  463. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
  464. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
  465. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
  466. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
  467. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
  468. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
  469. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
  470. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
  471. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
  472. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
  473. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
  474. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
  475. /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
  476. /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
  477. /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
  478. /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
  479. /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
  480. /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
  481. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
  482. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
  483. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
  484. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
  485. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
  486. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
  487. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
  488. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
  489. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
  490. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
  491. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
  492. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
  493. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
  494. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
  495. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
  496. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
  497. /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
  498. /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
  499. /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
  500. /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
  501. /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
  502. /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
  503. /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
  504. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
  505. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
  506. /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
  507. /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
  508. /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
  509. /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
  510. /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
  511. /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
  512. /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
  513. /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
  514. /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
  515. /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
  516. /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
  517. /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
  518. /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
  519. /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
  520. /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
  521. /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
  522. /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
  523. /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
  524. /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
  525. /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
  526. /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
  527. /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
  528. /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
  529. /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
  530. /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
  531. /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
  532. /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
  533. /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
  534. /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
  535. /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
  536. /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
  537. /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
  538. /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
  539. /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
  540. /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
  541. /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
  542. /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
@@ -1,793 +0,0 @@
1
- #include "cxx.h"
2
- #include <cstring>
3
- #include <iostream>
4
- #include <memory>
5
-
6
- extern "C" {
7
- void cxxbridge1$cxx_string$init(std::string *s, const std::uint8_t *ptr,
8
- std::size_t len) noexcept {
9
- new (s) std::string(reinterpret_cast<const char *>(ptr), len);
10
- }
11
-
12
- void cxxbridge1$cxx_string$destroy(std::string *s) noexcept {
13
- using std::string;
14
- s->~string();
15
- }
16
-
17
- const char *cxxbridge1$cxx_string$data(const std::string &s) noexcept {
18
- return s.data();
19
- }
20
-
21
- std::size_t cxxbridge1$cxx_string$length(const std::string &s) noexcept {
22
- return s.length();
23
- }
24
-
25
- void cxxbridge1$cxx_string$clear(std::string &s) noexcept { s.clear(); }
26
-
27
- void cxxbridge1$cxx_string$reserve_total(std::string &s,
28
- size_t new_cap) noexcept {
29
- s.reserve(new_cap);
30
- }
31
-
32
- void cxxbridge1$cxx_string$push(std::string &s, const std::uint8_t *ptr,
33
- std::size_t len) noexcept {
34
- s.append(reinterpret_cast<const char *>(ptr), len);
35
- }
36
-
37
- // rust::String
38
- void cxxbridge1$string$new(rust::String *self) noexcept;
39
- void cxxbridge1$string$clone(rust::String *self,
40
- const rust::String &other) noexcept;
41
- bool cxxbridge1$string$from_utf8(rust::String *self, const char *ptr,
42
- std::size_t len) noexcept;
43
- void cxxbridge1$string$from_utf8_lossy(rust::String *self, const char *ptr,
44
- std::size_t len) noexcept;
45
- bool cxxbridge1$string$from_utf16(rust::String *self, const char16_t *ptr,
46
- std::size_t len) noexcept;
47
- void cxxbridge1$string$from_utf16_lossy(rust::String *self, const char16_t *ptr,
48
- std::size_t len) noexcept;
49
- void cxxbridge1$string$drop(rust::String *self) noexcept;
50
- const char *cxxbridge1$string$ptr(const rust::String *self) noexcept;
51
- std::size_t cxxbridge1$string$len(const rust::String *self) noexcept;
52
- std::size_t cxxbridge1$string$capacity(const rust::String *self) noexcept;
53
- void cxxbridge1$string$reserve_additional(rust::String *self,
54
- size_t additional) noexcept;
55
- void cxxbridge1$string$reserve_total(rust::String *self,
56
- size_t new_cap) noexcept;
57
-
58
- // rust::Str
59
- void cxxbridge1$str$new(rust::Str *self) noexcept;
60
- void cxxbridge1$str$ref(rust::Str *self, const rust::String *string) noexcept;
61
- bool cxxbridge1$str$from(rust::Str *self, const char *ptr,
62
- std::size_t len) noexcept;
63
- const char *cxxbridge1$str$ptr(const rust::Str *self) noexcept;
64
- std::size_t cxxbridge1$str$len(const rust::Str *self) noexcept;
65
-
66
- // rust::Slice
67
- void cxxbridge1$slice$new(void *self, const void *ptr,
68
- std::size_t len) noexcept;
69
- void *cxxbridge1$slice$ptr(const void *self) noexcept;
70
- std::size_t cxxbridge1$slice$len(const void *self) noexcept;
71
- } // extern "C"
72
-
73
- namespace rust {
74
- inline namespace cxxbridge1 {
75
-
76
- template <typename Exception>
77
- void panic [[noreturn]] (const char *msg) {
78
- #if defined(RUST_CXX_NO_EXCEPTIONS)
79
- std::cerr << "Error: " << msg << ". Aborting." << std::endl;
80
- std::terminate();
81
- #else
82
- throw Exception(msg);
83
- #endif
84
- }
85
-
86
- template void panic<std::out_of_range> [[noreturn]] (const char *msg);
87
-
88
- template <typename T>
89
- static bool is_aligned(const void *ptr) noexcept {
90
- auto iptr = reinterpret_cast<std::uintptr_t>(ptr);
91
- return !(iptr % alignof(T));
92
- }
93
-
94
- String::String() noexcept { cxxbridge1$string$new(this); }
95
-
96
- String::String(const String &other) noexcept {
97
- cxxbridge1$string$clone(this, other);
98
- }
99
-
100
- String::String(String &&other) noexcept : repr(other.repr) {
101
- cxxbridge1$string$new(&other);
102
- }
103
-
104
- String::~String() noexcept { cxxbridge1$string$drop(this); }
105
-
106
- static void initString(String *self, const char *s, std::size_t len) {
107
- if (!cxxbridge1$string$from_utf8(self, s, len)) {
108
- panic<std::invalid_argument>("data for rust::String is not utf-8");
109
- }
110
- }
111
-
112
- static void initString(String *self, const char16_t *s, std::size_t len) {
113
- if (!cxxbridge1$string$from_utf16(self, s, len)) {
114
- panic<std::invalid_argument>("data for rust::String is not utf-16");
115
- }
116
- }
117
-
118
- String::String(const std::string &s) { initString(this, s.data(), s.length()); }
119
-
120
- String::String(const char *s) {
121
- assert(s != nullptr);
122
- initString(this, s, std::strlen(s));
123
- }
124
-
125
- String::String(const char *s, std::size_t len) {
126
- assert(s != nullptr || len == 0);
127
- initString(this,
128
- s == nullptr && len == 0 ? reinterpret_cast<const char *>(1) : s,
129
- len);
130
- }
131
-
132
- String::String(const char16_t *s) {
133
- assert(s != nullptr);
134
- assert(is_aligned<char16_t>(s));
135
- initString(this, s, std::char_traits<char16_t>::length(s));
136
- }
137
-
138
- String::String(const char16_t *s, std::size_t len) {
139
- assert(s != nullptr || len == 0);
140
- assert(is_aligned<char16_t>(s));
141
- initString(this,
142
- s == nullptr && len == 0 ? reinterpret_cast<const char16_t *>(2)
143
- : s,
144
- len);
145
- }
146
-
147
- struct String::lossy_t {};
148
-
149
- String::String(lossy_t, const char *s, std::size_t len) noexcept {
150
- cxxbridge1$string$from_utf8_lossy(
151
- this, s == nullptr && len == 0 ? reinterpret_cast<const char *>(1) : s,
152
- len);
153
- }
154
-
155
- String::String(lossy_t, const char16_t *s, std::size_t len) noexcept {
156
- cxxbridge1$string$from_utf16_lossy(
157
- this,
158
- s == nullptr && len == 0 ? reinterpret_cast<const char16_t *>(2) : s,
159
- len);
160
- }
161
-
162
- String String::lossy(const std::string &s) noexcept {
163
- return String::lossy(s.data(), s.length());
164
- }
165
-
166
- String String::lossy(const char *s) noexcept {
167
- assert(s != nullptr);
168
- return String::lossy(s, std::strlen(s));
169
- }
170
-
171
- String String::lossy(const char *s, std::size_t len) noexcept {
172
- assert(s != nullptr || len == 0);
173
- return String(lossy_t{}, s, len);
174
- }
175
-
176
- String String::lossy(const char16_t *s) noexcept {
177
- assert(s != nullptr);
178
- assert(is_aligned<char16_t>(s));
179
- return String(lossy_t{}, s, std::char_traits<char16_t>::length(s));
180
- }
181
-
182
- String String::lossy(const char16_t *s, std::size_t len) noexcept {
183
- assert(s != nullptr || len == 0);
184
- assert(is_aligned<char16_t>(s));
185
- return String(lossy_t{}, s, len);
186
- }
187
-
188
- String &String::operator=(const String &other) &noexcept {
189
- if (this != &other) {
190
- cxxbridge1$string$drop(this);
191
- cxxbridge1$string$clone(this, other);
192
- }
193
- return *this;
194
- }
195
-
196
- String &String::operator=(String &&other) &noexcept {
197
- cxxbridge1$string$drop(this);
198
- this->repr = other.repr;
199
- cxxbridge1$string$new(&other);
200
- return *this;
201
- }
202
-
203
- String::operator std::string() const {
204
- return std::string(this->data(), this->size());
205
- }
206
-
207
- const char *String::data() const noexcept {
208
- return cxxbridge1$string$ptr(this);
209
- }
210
-
211
- std::size_t String::size() const noexcept {
212
- return cxxbridge1$string$len(this);
213
- }
214
-
215
- std::size_t String::length() const noexcept {
216
- return cxxbridge1$string$len(this);
217
- }
218
-
219
- bool String::empty() const noexcept { return this->size() == 0; }
220
-
221
- const char *String::c_str() noexcept {
222
- auto len = this->length();
223
- cxxbridge1$string$reserve_additional(this, 1);
224
- auto ptr = this->data();
225
- const_cast<char *>(ptr)[len] = '\0';
226
- return ptr;
227
- }
228
-
229
- std::size_t String::capacity() const noexcept {
230
- return cxxbridge1$string$capacity(this);
231
- }
232
-
233
- void String::reserve(std::size_t new_cap) noexcept {
234
- cxxbridge1$string$reserve_total(this, new_cap);
235
- }
236
-
237
- String::iterator String::begin() noexcept {
238
- return const_cast<char *>(this->data());
239
- }
240
-
241
- String::iterator String::end() noexcept {
242
- return const_cast<char *>(this->data()) + this->size();
243
- }
244
-
245
- String::const_iterator String::begin() const noexcept { return this->cbegin(); }
246
-
247
- String::const_iterator String::end() const noexcept { return this->cend(); }
248
-
249
- String::const_iterator String::cbegin() const noexcept { return this->data(); }
250
-
251
- String::const_iterator String::cend() const noexcept {
252
- return this->data() + this->size();
253
- }
254
-
255
- bool String::operator==(const String &rhs) const noexcept {
256
- return rust::Str(*this) == rust::Str(rhs);
257
- }
258
-
259
- bool String::operator!=(const String &rhs) const noexcept {
260
- return rust::Str(*this) != rust::Str(rhs);
261
- }
262
-
263
- bool String::operator<(const String &rhs) const noexcept {
264
- return rust::Str(*this) < rust::Str(rhs);
265
- }
266
-
267
- bool String::operator<=(const String &rhs) const noexcept {
268
- return rust::Str(*this) <= rust::Str(rhs);
269
- }
270
-
271
- bool String::operator>(const String &rhs) const noexcept {
272
- return rust::Str(*this) > rust::Str(rhs);
273
- }
274
-
275
- bool String::operator>=(const String &rhs) const noexcept {
276
- return rust::Str(*this) >= rust::Str(rhs);
277
- }
278
-
279
- void String::swap(String &rhs) noexcept {
280
- using std::swap;
281
- swap(this->repr, rhs.repr);
282
- }
283
-
284
- String::String(unsafe_bitcopy_t, const String &bits) noexcept
285
- : repr(bits.repr) {}
286
-
287
- std::ostream &operator<<(std::ostream &os, const String &s) {
288
- os.write(s.data(), s.size());
289
- return os;
290
- }
291
-
292
- Str::Str() noexcept { cxxbridge1$str$new(this); }
293
-
294
- Str::Str(const String &s) noexcept { cxxbridge1$str$ref(this, &s); }
295
-
296
- static void initStr(Str *self, const char *ptr, std::size_t len) {
297
- if (!cxxbridge1$str$from(self, ptr, len)) {
298
- panic<std::invalid_argument>("data for rust::Str is not utf-8");
299
- }
300
- }
301
-
302
- Str::Str(const std::string &s) { initStr(this, s.data(), s.length()); }
303
-
304
- Str::Str(const char *s) {
305
- assert(s != nullptr);
306
- initStr(this, s, std::strlen(s));
307
- }
308
-
309
- Str::Str(const char *s, std::size_t len) {
310
- assert(s != nullptr || len == 0);
311
- initStr(this,
312
- s == nullptr && len == 0 ? reinterpret_cast<const char *>(1) : s,
313
- len);
314
- }
315
-
316
- Str::operator std::string() const {
317
- return std::string(this->data(), this->size());
318
- }
319
-
320
- const char *Str::data() const noexcept { return cxxbridge1$str$ptr(this); }
321
-
322
- std::size_t Str::size() const noexcept { return cxxbridge1$str$len(this); }
323
-
324
- std::size_t Str::length() const noexcept { return this->size(); }
325
-
326
- bool Str::empty() const noexcept { return this->size() == 0; }
327
-
328
- Str::const_iterator Str::begin() const noexcept { return this->cbegin(); }
329
-
330
- Str::const_iterator Str::end() const noexcept { return this->cend(); }
331
-
332
- Str::const_iterator Str::cbegin() const noexcept { return this->data(); }
333
-
334
- Str::const_iterator Str::cend() const noexcept {
335
- return this->data() + this->size();
336
- }
337
-
338
- bool Str::operator==(const Str &rhs) const noexcept {
339
- return this->size() == rhs.size() &&
340
- std::equal(this->begin(), this->end(), rhs.begin());
341
- }
342
-
343
- bool Str::operator!=(const Str &rhs) const noexcept { return !(*this == rhs); }
344
-
345
- bool Str::operator<(const Str &rhs) const noexcept {
346
- return std::lexicographical_compare(this->begin(), this->end(), rhs.begin(),
347
- rhs.end());
348
- }
349
-
350
- bool Str::operator<=(const Str &rhs) const noexcept {
351
- // std::mismatch(this->begin(), this->end(), rhs.begin(), rhs.end()), except
352
- // without Undefined Behavior on C++11 if rhs is shorter than *this.
353
- const_iterator liter = this->begin(), lend = this->end(), riter = rhs.begin(),
354
- rend = rhs.end();
355
- while (liter != lend && riter != rend && *liter == *riter) {
356
- ++liter, ++riter;
357
- }
358
- if (liter == lend) {
359
- return true; // equal or *this is a prefix of rhs
360
- } else if (riter == rend) {
361
- return false; // rhs is a prefix of *this
362
- } else {
363
- return *liter <= *riter;
364
- }
365
- }
366
-
367
- bool Str::operator>(const Str &rhs) const noexcept { return rhs < *this; }
368
-
369
- bool Str::operator>=(const Str &rhs) const noexcept { return rhs <= *this; }
370
-
371
- void Str::swap(Str &rhs) noexcept {
372
- using std::swap;
373
- swap(this->repr, rhs.repr);
374
- }
375
-
376
- std::ostream &operator<<(std::ostream &os, const Str &s) {
377
- os.write(s.data(), s.size());
378
- return os;
379
- }
380
-
381
- void sliceInit(void *self, const void *ptr, std::size_t len) noexcept {
382
- cxxbridge1$slice$new(self, ptr, len);
383
- }
384
-
385
- void *slicePtr(const void *self) noexcept { return cxxbridge1$slice$ptr(self); }
386
-
387
- std::size_t sliceLen(const void *self) noexcept {
388
- return cxxbridge1$slice$len(self);
389
- }
390
-
391
- // Rust specifies that usize is ABI compatible with C's uintptr_t.
392
- // https://rust-lang.github.io/unsafe-code-guidelines/layout/scalars.html#isize-and-usize
393
- // However there is no direct Rust equivalent for size_t. C does not guarantee
394
- // that size_t and uintptr_t are compatible. In practice though, on all
395
- // platforms supported by Rust, they are identical for ABI purposes. See the
396
- // libc crate which unconditionally defines libc::size_t = usize. We expect the
397
- // same here and these assertions are just here to explicitly document that.
398
- // *Note that no assumption is made about C++ name mangling of signatures
399
- // containing these types, not here nor anywhere in CXX.*
400
- static_assert(sizeof(std::size_t) == sizeof(std::uintptr_t),
401
- "unsupported size_t size");
402
- static_assert(alignof(std::size_t) == alignof(std::uintptr_t),
403
- "unsupported size_t alignment");
404
- static_assert(sizeof(rust::isize) == sizeof(std::intptr_t),
405
- "unsupported ssize_t size");
406
- static_assert(alignof(rust::isize) == alignof(std::intptr_t),
407
- "unsupported ssize_t alignment");
408
-
409
- static_assert(std::is_trivially_copy_constructible<Str>::value,
410
- "trivial Str(const Str &)");
411
- static_assert(std::is_trivially_copy_assignable<Str>::value,
412
- "trivial operator=(const Str &)");
413
- static_assert(std::is_trivially_destructible<Str>::value, "trivial ~Str()");
414
-
415
- static_assert(
416
- std::is_trivially_copy_constructible<Slice<const std::uint8_t>>::value,
417
- "trivial Slice(const Slice &)");
418
- static_assert(
419
- std::is_trivially_move_constructible<Slice<const std::uint8_t>>::value,
420
- "trivial Slice(Slice &&)");
421
- static_assert(
422
- std::is_trivially_copy_assignable<Slice<const std::uint8_t>>::value,
423
- "trivial Slice::operator=(const Slice &) for const slices");
424
- static_assert(
425
- std::is_trivially_move_assignable<Slice<const std::uint8_t>>::value,
426
- "trivial Slice::operator=(Slice &&)");
427
- static_assert(std::is_trivially_destructible<Slice<const std::uint8_t>>::value,
428
- "trivial ~Slice()");
429
-
430
- static_assert(std::is_trivially_copy_constructible<Slice<std::uint8_t>>::value,
431
- "trivial Slice(const Slice &)");
432
- static_assert(std::is_trivially_move_constructible<Slice<std::uint8_t>>::value,
433
- "trivial Slice(Slice &&)");
434
- static_assert(!std::is_copy_assignable<Slice<std::uint8_t>>::value,
435
- "delete Slice::operator=(const Slice &) for mut slices");
436
- static_assert(std::is_trivially_move_assignable<Slice<std::uint8_t>>::value,
437
- "trivial Slice::operator=(Slice &&)");
438
- static_assert(std::is_trivially_destructible<Slice<std::uint8_t>>::value,
439
- "trivial ~Slice()");
440
-
441
- static_assert(std::is_same<Vec<std::uint8_t>::const_iterator,
442
- Vec<const std::uint8_t>::iterator>::value,
443
- "Vec<T>::const_iterator == Vec<const T>::iterator");
444
- static_assert(std::is_same<Vec<const std::uint8_t>::const_iterator,
445
- Vec<const std::uint8_t>::iterator>::value,
446
- "Vec<const T>::const_iterator == Vec<const T>::iterator");
447
- static_assert(!std::is_same<Vec<std::uint8_t>::const_iterator,
448
- Vec<std::uint8_t>::iterator>::value,
449
- "Vec<T>::const_iterator != Vec<T>::iterator");
450
-
451
- static const char *errorCopy(const char *ptr, std::size_t len) {
452
- char *copy = new char[len];
453
- std::memcpy(copy, ptr, len);
454
- return copy;
455
- }
456
-
457
- extern "C" {
458
- const char *cxxbridge1$error(const char *ptr, std::size_t len) noexcept {
459
- return errorCopy(ptr, len);
460
- }
461
- } // extern "C"
462
-
463
- Error::Error(const Error &other)
464
- : std::exception(other),
465
- msg(other.msg ? errorCopy(other.msg, other.len) : nullptr),
466
- len(other.len) {}
467
-
468
- Error::Error(Error &&other) noexcept
469
- : std::exception(std::move(other)), msg(other.msg), len(other.len) {
470
- other.msg = nullptr;
471
- other.len = 0;
472
- }
473
-
474
- Error::~Error() noexcept { delete[] this->msg; }
475
-
476
- Error &Error::operator=(const Error &other) & {
477
- if (this != &other) {
478
- std::exception::operator=(other);
479
- delete[] this->msg;
480
- this->msg = nullptr;
481
- if (other.msg) {
482
- this->msg = errorCopy(other.msg, other.len);
483
- this->len = other.len;
484
- }
485
- }
486
- return *this;
487
- }
488
-
489
- Error &Error::operator=(Error &&other) &noexcept {
490
- std::exception::operator=(std::move(other));
491
- delete[] this->msg;
492
- this->msg = other.msg;
493
- this->len = other.len;
494
- other.msg = nullptr;
495
- other.len = 0;
496
- return *this;
497
- }
498
-
499
- const char *Error::what() const noexcept { return this->msg; }
500
-
501
- namespace {
502
- template <typename T>
503
- union MaybeUninit {
504
- T value;
505
- MaybeUninit() {}
506
- ~MaybeUninit() {}
507
- };
508
- } // namespace
509
-
510
- namespace repr {
511
- struct PtrLen final {
512
- void *ptr;
513
- std::size_t len;
514
- };
515
- } // namespace repr
516
-
517
- extern "C" {
518
- repr::PtrLen cxxbridge1$exception(const char *, std::size_t len) noexcept;
519
- }
520
-
521
- namespace detail {
522
- // On some platforms size_t is the same C++ type as one of the sized integer
523
- // types; on others it is a distinct type. Only in the latter case do we need to
524
- // define a specialized impl of rust::Vec<size_t>, because in the former case it
525
- // would collide with one of the other specializations.
526
- using usize_if_unique =
527
- typename std::conditional<std::is_same<size_t, uint64_t>::value ||
528
- std::is_same<size_t, uint32_t>::value,
529
- struct usize_ignore, size_t>::type;
530
- using isize_if_unique =
531
- typename std::conditional<std::is_same<rust::isize, int64_t>::value ||
532
- std::is_same<rust::isize, int32_t>::value,
533
- struct isize_ignore, rust::isize>::type;
534
-
535
- class Fail final {
536
- repr::PtrLen &throw$;
537
-
538
- public:
539
- Fail(repr::PtrLen &throw$) noexcept : throw$(throw$) {}
540
- void operator()(const char *) noexcept;
541
- void operator()(const std::string &) noexcept;
542
- };
543
-
544
- void Fail::operator()(const char *catch$) noexcept {
545
- throw$ = cxxbridge1$exception(catch$, std::strlen(catch$));
546
- }
547
-
548
- void Fail::operator()(const std::string &catch$) noexcept {
549
- throw$ = cxxbridge1$exception(catch$.data(), catch$.length());
550
- }
551
- } // namespace detail
552
-
553
- } // namespace cxxbridge1
554
- } // namespace rust
555
-
556
- namespace {
557
- template <typename T>
558
- void destroy(T *ptr) {
559
- ptr->~T();
560
- }
561
- } // namespace
562
-
563
- extern "C" {
564
- void cxxbridge1$unique_ptr$std$string$null(
565
- std::unique_ptr<std::string> *ptr) noexcept {
566
- new (ptr) std::unique_ptr<std::string>();
567
- }
568
- void cxxbridge1$unique_ptr$std$string$raw(std::unique_ptr<std::string> *ptr,
569
- std::string *raw) noexcept {
570
- new (ptr) std::unique_ptr<std::string>(raw);
571
- }
572
- const std::string *cxxbridge1$unique_ptr$std$string$get(
573
- const std::unique_ptr<std::string> &ptr) noexcept {
574
- return ptr.get();
575
- }
576
- std::string *cxxbridge1$unique_ptr$std$string$release(
577
- std::unique_ptr<std::string> &ptr) noexcept {
578
- return ptr.release();
579
- }
580
- void cxxbridge1$unique_ptr$std$string$drop(
581
- std::unique_ptr<std::string> *ptr) noexcept {
582
- ptr->~unique_ptr();
583
- }
584
- } // extern "C"
585
-
586
- namespace {
587
- const std::size_t kMaxExpectedWordsInString = 8;
588
- static_assert(alignof(std::string) <= alignof(void *),
589
- "unexpectedly large std::string alignment");
590
- static_assert(sizeof(std::string) <= kMaxExpectedWordsInString * sizeof(void *),
591
- "unexpectedly large std::string size");
592
- } // namespace
593
-
594
- #define STD_VECTOR_OPS(RUST_TYPE, CXX_TYPE) \
595
- std::size_t cxxbridge1$std$vector$##RUST_TYPE##$size( \
596
- const std::vector<CXX_TYPE> &s) noexcept { \
597
- return s.size(); \
598
- } \
599
- CXX_TYPE *cxxbridge1$std$vector$##RUST_TYPE##$get_unchecked( \
600
- std::vector<CXX_TYPE> *s, std::size_t pos) noexcept { \
601
- return &(*s)[pos]; \
602
- } \
603
- void cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$null( \
604
- std::unique_ptr<std::vector<CXX_TYPE>> *ptr) noexcept { \
605
- new (ptr) std::unique_ptr<std::vector<CXX_TYPE>>(); \
606
- } \
607
- void cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$raw( \
608
- std::unique_ptr<std::vector<CXX_TYPE>> *ptr, \
609
- std::vector<CXX_TYPE> *raw) noexcept { \
610
- new (ptr) std::unique_ptr<std::vector<CXX_TYPE>>(raw); \
611
- } \
612
- const std::vector<CXX_TYPE> \
613
- *cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$get( \
614
- const std::unique_ptr<std::vector<CXX_TYPE>> &ptr) noexcept { \
615
- return ptr.get(); \
616
- } \
617
- std::vector<CXX_TYPE> \
618
- *cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$release( \
619
- std::unique_ptr<std::vector<CXX_TYPE>> &ptr) noexcept { \
620
- return ptr.release(); \
621
- } \
622
- void cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$drop( \
623
- std::unique_ptr<std::vector<CXX_TYPE>> *ptr) noexcept { \
624
- ptr->~unique_ptr(); \
625
- }
626
-
627
- #define STD_VECTOR_TRIVIAL_OPS(RUST_TYPE, CXX_TYPE) \
628
- void cxxbridge1$std$vector$##RUST_TYPE##$push_back( \
629
- std::vector<CXX_TYPE> *v, CXX_TYPE *value) noexcept { \
630
- v->push_back(std::move(*value)); \
631
- destroy(value); \
632
- } \
633
- void cxxbridge1$std$vector$##RUST_TYPE##$pop_back(std::vector<CXX_TYPE> *v, \
634
- CXX_TYPE *out) noexcept { \
635
- new (out) CXX_TYPE(std::move(v->back())); \
636
- v->pop_back(); \
637
- }
638
-
639
- #define RUST_VEC_EXTERNS(RUST_TYPE, CXX_TYPE) \
640
- void cxxbridge1$rust_vec$##RUST_TYPE##$new( \
641
- rust::Vec<CXX_TYPE> *ptr) noexcept; \
642
- void cxxbridge1$rust_vec$##RUST_TYPE##$drop( \
643
- rust::Vec<CXX_TYPE> *ptr) noexcept; \
644
- std::size_t cxxbridge1$rust_vec$##RUST_TYPE##$len( \
645
- const rust::Vec<CXX_TYPE> *ptr) noexcept; \
646
- std::size_t cxxbridge1$rust_vec$##RUST_TYPE##$capacity( \
647
- const rust::Vec<CXX_TYPE> *ptr) noexcept; \
648
- const CXX_TYPE *cxxbridge1$rust_vec$##RUST_TYPE##$data( \
649
- const rust::Vec<CXX_TYPE> *ptr) noexcept; \
650
- void cxxbridge1$rust_vec$##RUST_TYPE##$reserve_total( \
651
- rust::Vec<CXX_TYPE> *ptr, std::size_t new_cap) noexcept; \
652
- void cxxbridge1$rust_vec$##RUST_TYPE##$set_len(rust::Vec<CXX_TYPE> *ptr, \
653
- std::size_t len) noexcept; \
654
- void cxxbridge1$rust_vec$##RUST_TYPE##$truncate(rust::Vec<CXX_TYPE> *ptr, \
655
- std::size_t len) noexcept;
656
-
657
- #define RUST_VEC_OPS(RUST_TYPE, CXX_TYPE) \
658
- template <> \
659
- Vec<CXX_TYPE>::Vec() noexcept { \
660
- cxxbridge1$rust_vec$##RUST_TYPE##$new(this); \
661
- } \
662
- template <> \
663
- void Vec<CXX_TYPE>::drop() noexcept { \
664
- return cxxbridge1$rust_vec$##RUST_TYPE##$drop(this); \
665
- } \
666
- template <> \
667
- std::size_t Vec<CXX_TYPE>::size() const noexcept { \
668
- return cxxbridge1$rust_vec$##RUST_TYPE##$len(this); \
669
- } \
670
- template <> \
671
- std::size_t Vec<CXX_TYPE>::capacity() const noexcept { \
672
- return cxxbridge1$rust_vec$##RUST_TYPE##$capacity(this); \
673
- } \
674
- template <> \
675
- const CXX_TYPE *Vec<CXX_TYPE>::data() const noexcept { \
676
- return cxxbridge1$rust_vec$##RUST_TYPE##$data(this); \
677
- } \
678
- template <> \
679
- void Vec<CXX_TYPE>::reserve_total(std::size_t new_cap) noexcept { \
680
- cxxbridge1$rust_vec$##RUST_TYPE##$reserve_total(this, new_cap); \
681
- } \
682
- template <> \
683
- void Vec<CXX_TYPE>::set_len(std::size_t len) noexcept { \
684
- cxxbridge1$rust_vec$##RUST_TYPE##$set_len(this, len); \
685
- } \
686
- template <> \
687
- void Vec<CXX_TYPE>::truncate(std::size_t len) { \
688
- cxxbridge1$rust_vec$##RUST_TYPE##$truncate(this, len); \
689
- }
690
-
691
- #define SHARED_PTR_OPS(RUST_TYPE, CXX_TYPE) \
692
- static_assert(sizeof(std::shared_ptr<CXX_TYPE>) == 2 * sizeof(void *), ""); \
693
- static_assert(alignof(std::shared_ptr<CXX_TYPE>) == alignof(void *), ""); \
694
- void cxxbridge1$std$shared_ptr$##RUST_TYPE##$null( \
695
- std::shared_ptr<CXX_TYPE> *ptr) noexcept { \
696
- new (ptr) std::shared_ptr<CXX_TYPE>(); \
697
- } \
698
- CXX_TYPE *cxxbridge1$std$shared_ptr$##RUST_TYPE##$uninit( \
699
- std::shared_ptr<CXX_TYPE> *ptr) noexcept { \
700
- CXX_TYPE *uninit = \
701
- reinterpret_cast<CXX_TYPE *>(new rust::MaybeUninit<CXX_TYPE>); \
702
- new (ptr) std::shared_ptr<CXX_TYPE>(uninit); \
703
- return uninit; \
704
- } \
705
- void cxxbridge1$std$shared_ptr$##RUST_TYPE##$clone( \
706
- const std::shared_ptr<CXX_TYPE> &self, \
707
- std::shared_ptr<CXX_TYPE> *ptr) noexcept { \
708
- new (ptr) std::shared_ptr<CXX_TYPE>(self); \
709
- } \
710
- const CXX_TYPE *cxxbridge1$std$shared_ptr$##RUST_TYPE##$get( \
711
- const std::shared_ptr<CXX_TYPE> &self) noexcept { \
712
- return self.get(); \
713
- } \
714
- void cxxbridge1$std$shared_ptr$##RUST_TYPE##$drop( \
715
- const std::shared_ptr<CXX_TYPE> *self) noexcept { \
716
- self->~shared_ptr(); \
717
- } \
718
- static_assert(sizeof(std::weak_ptr<CXX_TYPE>) == 2 * sizeof(void *), ""); \
719
- static_assert(alignof(std::weak_ptr<CXX_TYPE>) == alignof(void *), ""); \
720
- void cxxbridge1$std$weak_ptr$##RUST_TYPE##$null( \
721
- std::weak_ptr<CXX_TYPE> *ptr) noexcept { \
722
- new (ptr) std::weak_ptr<CXX_TYPE>(); \
723
- } \
724
- void cxxbridge1$std$weak_ptr$##RUST_TYPE##$clone( \
725
- const std::weak_ptr<CXX_TYPE> &self, \
726
- std::weak_ptr<CXX_TYPE> *ptr) noexcept { \
727
- new (ptr) std::weak_ptr<CXX_TYPE>(self); \
728
- } \
729
- void cxxbridge1$std$weak_ptr$##RUST_TYPE##$downgrade( \
730
- const std::shared_ptr<CXX_TYPE> &shared, \
731
- std::weak_ptr<CXX_TYPE> *weak) noexcept { \
732
- new (weak) std::weak_ptr<CXX_TYPE>(shared); \
733
- } \
734
- void cxxbridge1$std$weak_ptr$##RUST_TYPE##$upgrade( \
735
- const std::weak_ptr<CXX_TYPE> &weak, \
736
- std::shared_ptr<CXX_TYPE> *shared) noexcept { \
737
- new (shared) std::shared_ptr<CXX_TYPE>(weak.lock()); \
738
- } \
739
- void cxxbridge1$std$weak_ptr$##RUST_TYPE##$drop( \
740
- const std::weak_ptr<CXX_TYPE> *self) noexcept { \
741
- self->~weak_ptr(); \
742
- }
743
-
744
- // Usize and isize are the same type as one of the below.
745
- #define FOR_EACH_NUMERIC(MACRO) \
746
- MACRO(u8, std::uint8_t) \
747
- MACRO(u16, std::uint16_t) \
748
- MACRO(u32, std::uint32_t) \
749
- MACRO(u64, std::uint64_t) \
750
- MACRO(i8, std::int8_t) \
751
- MACRO(i16, std::int16_t) \
752
- MACRO(i32, std::int32_t) \
753
- MACRO(i64, std::int64_t) \
754
- MACRO(f32, float) \
755
- MACRO(f64, double)
756
-
757
- #define FOR_EACH_TRIVIAL_STD_VECTOR(MACRO) \
758
- FOR_EACH_NUMERIC(MACRO) \
759
- MACRO(usize, std::size_t) \
760
- MACRO(isize, rust::isize)
761
-
762
- #define FOR_EACH_STD_VECTOR(MACRO) \
763
- FOR_EACH_TRIVIAL_STD_VECTOR(MACRO) \
764
- MACRO(string, std::string)
765
-
766
- #define FOR_EACH_RUST_VEC(MACRO) \
767
- FOR_EACH_NUMERIC(MACRO) \
768
- MACRO(bool, bool) \
769
- MACRO(char, char) \
770
- MACRO(usize, rust::detail::usize_if_unique) \
771
- MACRO(isize, rust::detail::isize_if_unique) \
772
- MACRO(string, rust::String) \
773
- MACRO(str, rust::Str)
774
-
775
- #define FOR_EACH_SHARED_PTR(MACRO) \
776
- FOR_EACH_NUMERIC(MACRO) \
777
- MACRO(bool, bool) \
778
- MACRO(usize, std::size_t) \
779
- MACRO(isize, rust::isize) \
780
- MACRO(string, std::string)
781
-
782
- extern "C" {
783
- FOR_EACH_STD_VECTOR(STD_VECTOR_OPS)
784
- FOR_EACH_TRIVIAL_STD_VECTOR(STD_VECTOR_TRIVIAL_OPS)
785
- FOR_EACH_RUST_VEC(RUST_VEC_EXTERNS)
786
- FOR_EACH_SHARED_PTR(SHARED_PTR_OPS)
787
- } // extern "C"
788
-
789
- namespace rust {
790
- inline namespace cxxbridge1 {
791
- FOR_EACH_RUST_VEC(RUST_VEC_OPS)
792
- } // namespace cxxbridge1
793
- } // namespace rust