@nativescript/canvas 2.0.0-alpha.9 → 2.0.0-beta.1

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 (557) hide show
  1. package/Canvas/common.d.ts +213 -25
  2. package/Canvas/common.js +705 -452
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +10 -1
  5. package/Canvas/index.android.js +155 -52
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +8 -0
  8. package/Canvas/index.ios.d.ts +7 -4
  9. package/Canvas/index.ios.js +159 -106
  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 +11 -5
  18. package/Canvas2D/CanvasRenderingContext2D/index.js +183 -245
  19. package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
  20. package/Canvas2D/DOMMatrix/index.js +5 -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/Dom.js +7 -2
  28. package/Dom/Dom.js.map +1 -1
  29. package/Dom/Group.d.ts +7 -7
  30. package/Dom/Group.js +47 -21
  31. package/Dom/Group.js.map +1 -1
  32. package/Dom/Image.js +2 -3
  33. package/Dom/Image.js.map +1 -1
  34. package/Dom/Paint.d.ts +1 -0
  35. package/Dom/Paint.js +10 -5
  36. package/Dom/Paint.js.map +1 -1
  37. package/Dom/Text.js +3 -4
  38. package/Dom/Text.js.map +1 -1
  39. package/Dom/shapes/Circle.js +2 -3
  40. package/Dom/shapes/Circle.js.map +1 -1
  41. package/Dom/shapes/Path.js +1 -0
  42. package/Dom/shapes/Path.js.map +1 -1
  43. package/Dom/shapes/Points.js +1 -2
  44. package/Dom/shapes/Points.js.map +1 -1
  45. package/Dom/shapes/Rect.js +2 -2
  46. package/Dom/shapes/Rect.js.map +1 -1
  47. package/Dom/shapes/RoundedRect.js +8 -9
  48. package/Dom/shapes/RoundedRect.js.map +1 -1
  49. package/ImageAsset/index.d.ts +2 -2
  50. package/ImageAsset/index.js +33 -37
  51. package/ImageAsset/index.js.map +1 -1
  52. package/ImageBitmap/index.d.ts +0 -2
  53. package/ImageBitmap/index.js +47 -33
  54. package/ImageBitmap/index.js.map +1 -1
  55. package/LICENSE +201 -0
  56. package/SVG/SVG.js +1 -1
  57. package/SVG/SVG.js.map +1 -1
  58. package/TextDecoder/index.d.ts +0 -2
  59. package/TextDecoder/index.js +3 -12
  60. package/TextDecoder/index.js.map +1 -1
  61. package/TextEncoder/index.d.ts +0 -2
  62. package/TextEncoder/index.js +4 -13
  63. package/TextEncoder/index.js.map +1 -1
  64. package/WebGL/WebGLExtensions/index.d.ts +4 -12
  65. package/WebGL/WebGLExtensions/index.js +27 -77
  66. package/WebGL/WebGLExtensions/index.js.map +1 -1
  67. package/WebGL/WebGLProgram.d.ts +0 -1
  68. package/WebGL/WebGLProgram.js +0 -3
  69. package/WebGL/WebGLProgram.js.map +1 -1
  70. package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
  71. package/WebGL/WebGLRenderingContext/common.js +3 -13
  72. package/WebGL/WebGLRenderingContext/common.js.map +1 -1
  73. package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
  74. package/WebGL/WebGLRenderingContext/index.js +354 -728
  75. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  76. package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
  77. package/WebGL2/WebGL2RenderingContext/common.js +2 -2
  78. package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
  79. package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
  80. package/WebGL2/WebGL2RenderingContext/index.js +116 -285
  81. package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
  82. package/angular/esm2020/index.mjs +4 -4
  83. package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
  84. package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
  85. package/angular/package.json +2 -2
  86. package/index.js.map +1 -1
  87. package/package.json +3 -2
  88. package/platforms/android/canvas-release.aar +0 -0
  89. package/platforms/android/include.gradle +15 -0
  90. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +132 -68
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2808 -68
  95. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5847 -2633
  98. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -25
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +43 -25
  101. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  102. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  103. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +264 -136
  104. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  105. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  106. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2808 -68
  107. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  108. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  109. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  110. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5847 -2633
  111. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -25
  112. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  113. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +43 -25
  114. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5847 -2633
  115. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -25
  116. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  117. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +43 -25
  118. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
  119. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  120. package/platforms/ios/Podfile +5 -2
  121. package/platforms/ios/build.xcconfig +3 -3
  122. package/platforms/ios/src/CanvasModule.h +0 -2
  123. package/platforms/ios/src/CanvasModule.mm +4 -4
  124. package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
  125. package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
  126. package/platforms/ios/src/cpp/Caches.cpp +35 -0
  127. package/platforms/ios/src/cpp/Caches.h +190 -0
  128. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
  129. package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
  130. package/platforms/ios/src/cpp/Common.h +30 -0
  131. package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
  132. package/platforms/ios/src/cpp/Helpers.h +336 -38
  133. package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
  134. package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
  135. package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
  136. package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
  137. package/platforms/ios/src/cpp/JSICallback.h +83 -5
  138. package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
  139. package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
  140. package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
  141. package/platforms/ios/src/cpp/ObjectWrapperImpl.h +33 -0
  142. package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
  143. package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
  144. package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
  145. package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
  146. package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
  147. package/platforms/ios/src/cpp/RafImpl.h +11 -8
  148. package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
  149. package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
  150. package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
  151. package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
  152. package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
  153. package/platforms/ios/src/cpp/URLImpl.h +121 -0
  154. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
  155. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
  156. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
  157. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
  158. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2837 -0
  159. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1334 -21
  160. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
  161. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
  162. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
  163. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
  164. package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
  165. package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
  166. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
  167. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
  168. package/platforms/ios/src/cpp/gl.h +57 -7
  169. package/platforms/ios/src/cpp/gl3stub.c +425 -0
  170. package/platforms/ios/src/cpp/gl3stub.h +665 -0
  171. package/platforms/ios/src/cpp/gles3jni.h +37 -0
  172. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  173. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
  174. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
  175. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
  176. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
  177. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
  178. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
  179. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
  180. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
  181. package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
  182. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
  183. package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
  184. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
  185. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
  186. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
  187. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
  188. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +136 -0
  189. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -12
  190. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
  191. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
  192. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
  193. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
  194. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
  195. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
  196. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
  197. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
  198. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
  199. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
  200. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
  201. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
  202. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
  203. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
  204. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
  205. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
  206. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +110 -0
  207. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -14
  208. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
  209. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
  210. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
  211. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
  212. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
  213. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
  214. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
  215. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
  216. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +38 -0
  217. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -14
  218. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
  219. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
  220. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4564 -0
  221. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -342
  222. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
  223. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
  224. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
  225. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
  226. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
  227. package/platforms/ios/src/module.modulemap +1 -0
  228. package/{pods → src-native/ios}/NativeScript.podspec +12 -25
  229. package/typings/objc!CanvasNative.d.ts +2038 -0
  230. package/typings/objc!CanvasNative.js +1 -0
  231. package/typings/objc!CanvasNative.js.map +1 -0
  232. package/utils.d.ts +3 -1
  233. package/utils.js +7 -20
  234. package/utils.js.map +1 -1
  235. package/angular/nativescript-canvas-angular.d.ts +0 -5
  236. package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
  237. package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
  238. package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
  239. package/platforms/ios/src/cpp/RafImpl.mm +0 -10
  240. package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
  241. package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
  242. package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
  243. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
  244. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
  245. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
  246. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
  247. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1972
  248. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
  249. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
  250. package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
  251. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
  252. package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
  253. package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
  254. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
  255. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
  256. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
  257. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
  258. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
  259. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
  260. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
  261. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
  262. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
  263. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
  264. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
  265. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
  266. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
  267. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
  268. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
  269. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
  270. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
  271. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
  272. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
  273. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
  274. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
  275. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
  276. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
  277. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4543
  278. package/pods/Headers/jsi/decorator.h +0 -770
  279. package/pods/Headers/jsi/instrumentation.h +0 -117
  280. package/pods/Headers/jsi/jsi-inl.h +0 -338
  281. package/pods/Headers/jsi/jsi.h +0 -1571
  282. package/pods/Headers/jsi/jsilib.h +0 -59
  283. package/pods/Headers/jsi/threadsafe.h +0 -79
  284. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  285. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  286. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  287. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  288. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  289. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  290. /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
  291. /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
  292. /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
  293. /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
  294. /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
  295. /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
  296. /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
  297. /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
  298. /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
  299. /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
  300. /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
  301. /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
  302. /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
  303. /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
  304. /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
  305. /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
  306. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
  307. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
  308. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
  309. /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
  310. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
  311. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
  312. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
  313. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
  314. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
  315. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
  316. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
  317. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
  318. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
  319. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
  320. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
  321. /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
  322. /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
  323. /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
  324. /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
  325. /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
  326. /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
  327. /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
  328. /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
  329. /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
  330. /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
  331. /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
  332. /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
  333. /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
  334. /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
  335. /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
  336. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
  337. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
  338. /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
  339. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
  340. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
  341. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
  342. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
  343. /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
  344. /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
  345. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
  346. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
  347. /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
  348. /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
  349. /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
  350. /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
  351. /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
  352. /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
  353. /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
  354. /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
  355. /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
  356. /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
  357. /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
  358. /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
  359. /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
  360. /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
  361. /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
  362. /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
  363. /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
  364. /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
  365. /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
  366. /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
  367. /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
  368. /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
  369. /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
  370. /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
  371. /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
  372. /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
  373. /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
  374. /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
  375. /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
  376. /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
  377. /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
  378. /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
  379. /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
  380. /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
  381. /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
  382. /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
  383. /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
  384. /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
  385. /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
  386. /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
  387. /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
  388. /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
  389. /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
  390. /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
  391. /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
  392. /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
  393. /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
  394. /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
  395. /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
  396. /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
  397. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
  398. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
  399. /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
  400. /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
  401. /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
  402. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
  403. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
  404. /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
  405. /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
  406. /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
  407. /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
  408. /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
  409. /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
  410. /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
  411. /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
  412. /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
  413. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
  414. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
  415. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
  416. /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
  417. /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
  418. /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
  419. /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
  420. /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
  421. /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
  422. /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
  423. /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
  424. /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
  425. /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
  426. /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
  427. /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
  428. /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
  429. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
  430. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
  431. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
  432. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
  433. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
  434. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
  435. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
  436. /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
  437. /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
  438. /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
  439. /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
  440. /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
  441. /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
  442. /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
  443. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
  444. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
  445. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
  446. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
  447. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
  448. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
  449. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
  450. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
  451. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
  452. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
  453. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
  454. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
  455. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
  456. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
  457. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
  458. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
  459. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
  460. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
  461. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
  462. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
  463. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
  464. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
  465. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
  466. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
  467. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
  468. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
  469. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
  470. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
  471. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
  472. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
  473. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
  474. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
  475. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
  476. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
  477. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
  478. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
  479. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
  480. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
  481. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
  482. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
  483. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
  484. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
  485. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
  486. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
  487. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
  488. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
  489. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
  490. /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
  491. /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
  492. /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
  493. /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
  494. /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
  495. /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
  496. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
  497. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
  498. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
  499. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
  500. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
  501. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
  502. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
  503. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
  504. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
  505. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
  506. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
  507. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
  508. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
  509. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
  510. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
  511. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
  512. /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
  513. /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
  514. /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
  515. /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
  516. /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
  517. /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
  518. /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
  519. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
  520. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
  521. /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
  522. /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
  523. /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
  524. /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
  525. /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
  526. /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
  527. /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
  528. /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
  529. /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
  530. /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
  531. /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
  532. /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
  533. /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
  534. /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
  535. /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
  536. /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
  537. /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
  538. /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
  539. /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
  540. /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
  541. /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
  542. /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
  543. /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
  544. /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
  545. /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
  546. /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
  547. /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
  548. /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
  549. /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
  550. /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
  551. /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
  552. /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
  553. /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
  554. /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
  555. /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
  556. /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
  557. /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
@@ -1,1111 +0,0 @@
1
- #pragma once
2
- #include <algorithm>
3
- #include <array>
4
- #include <cassert>
5
- #include <cstddef>
6
- #include <cstdint>
7
- #include <exception>
8
- #include <initializer_list>
9
- #include <iosfwd>
10
- #include <iterator>
11
- #include <new>
12
- #include <stdexcept>
13
- #include <string>
14
- #include <type_traits>
15
- #include <utility>
16
- #include <vector>
17
- #if defined(_WIN32)
18
- #include <basetsd.h>
19
- #else
20
- #include <sys/types.h>
21
- #endif
22
-
23
- namespace rust {
24
- inline namespace cxxbridge1 {
25
-
26
- struct unsafe_bitcopy_t;
27
-
28
- namespace {
29
- template <typename T>
30
- class impl;
31
- }
32
-
33
- #ifndef CXXBRIDGE1_RUST_STRING
34
- #define CXXBRIDGE1_RUST_STRING
35
- // https://cxx.rs/binding/string.html
36
- class String final {
37
- public:
38
- String() noexcept;
39
- String(const String &) noexcept;
40
- String(String &&) noexcept;
41
- ~String() noexcept;
42
-
43
- String(const std::string &);
44
- String(const char *);
45
- String(const char *, std::size_t);
46
- String(const char16_t *);
47
- String(const char16_t *, std::size_t);
48
-
49
- // Replace invalid Unicode data with the replacement character (U+FFFD).
50
- static String lossy(const std::string &) noexcept;
51
- static String lossy(const char *) noexcept;
52
- static String lossy(const char *, std::size_t) noexcept;
53
- static String lossy(const char16_t *) noexcept;
54
- static String lossy(const char16_t *, std::size_t) noexcept;
55
-
56
- String &operator=(const String &) &noexcept;
57
- String &operator=(String &&) &noexcept;
58
-
59
- explicit operator std::string() const;
60
-
61
- // Note: no null terminator.
62
- const char *data() const noexcept;
63
- std::size_t size() const noexcept;
64
- std::size_t length() const noexcept;
65
- bool empty() const noexcept;
66
-
67
- const char *c_str() noexcept;
68
-
69
- std::size_t capacity() const noexcept;
70
- void reserve(size_t new_cap) noexcept;
71
-
72
- using iterator = char *;
73
- iterator begin() noexcept;
74
- iterator end() noexcept;
75
-
76
- using const_iterator = const char *;
77
- const_iterator begin() const noexcept;
78
- const_iterator end() const noexcept;
79
- const_iterator cbegin() const noexcept;
80
- const_iterator cend() const noexcept;
81
-
82
- bool operator==(const String &) const noexcept;
83
- bool operator!=(const String &) const noexcept;
84
- bool operator<(const String &) const noexcept;
85
- bool operator<=(const String &) const noexcept;
86
- bool operator>(const String &) const noexcept;
87
- bool operator>=(const String &) const noexcept;
88
-
89
- void swap(String &) noexcept;
90
-
91
- // Internal API only intended for the cxxbridge code generator.
92
- String(unsafe_bitcopy_t, const String &) noexcept;
93
-
94
- private:
95
- struct lossy_t;
96
- String(lossy_t, const char *, std::size_t) noexcept;
97
- String(lossy_t, const char16_t *, std::size_t) noexcept;
98
- friend void swap(String &lhs, String &rhs) noexcept { lhs.swap(rhs); }
99
-
100
- // Size and alignment statically verified by rust_string.rs.
101
- std::array<std::uintptr_t, 3> repr;
102
- };
103
- #endif // CXXBRIDGE1_RUST_STRING
104
-
105
- #ifndef CXXBRIDGE1_RUST_STR
106
- #define CXXBRIDGE1_RUST_STR
107
- // https://cxx.rs/binding/str.html
108
- class Str final {
109
- public:
110
- Str() noexcept;
111
- Str(const String &) noexcept;
112
- Str(const std::string &);
113
- Str(const char *);
114
- Str(const char *, std::size_t);
115
-
116
- Str &operator=(const Str &) &noexcept = default;
117
-
118
- explicit operator std::string() const;
119
-
120
- // Note: no null terminator.
121
- const char *data() const noexcept;
122
- std::size_t size() const noexcept;
123
- std::size_t length() const noexcept;
124
- bool empty() const noexcept;
125
-
126
- // Important in order for System V ABI to pass in registers.
127
- Str(const Str &) noexcept = default;
128
- ~Str() noexcept = default;
129
-
130
- using iterator = const char *;
131
- using const_iterator = const char *;
132
- const_iterator begin() const noexcept;
133
- const_iterator end() const noexcept;
134
- const_iterator cbegin() const noexcept;
135
- const_iterator cend() const noexcept;
136
-
137
- bool operator==(const Str &) const noexcept;
138
- bool operator!=(const Str &) const noexcept;
139
- bool operator<(const Str &) const noexcept;
140
- bool operator<=(const Str &) const noexcept;
141
- bool operator>(const Str &) const noexcept;
142
- bool operator>=(const Str &) const noexcept;
143
-
144
- void swap(Str &) noexcept;
145
-
146
- private:
147
- class uninit;
148
- Str(uninit) noexcept;
149
- friend impl<Str>;
150
-
151
- std::array<std::uintptr_t, 2> repr;
152
- };
153
- #endif // CXXBRIDGE1_RUST_STR
154
-
155
- #ifndef CXXBRIDGE1_RUST_SLICE
156
- namespace detail {
157
- template <bool>
158
- struct copy_assignable_if {};
159
-
160
- template <>
161
- struct copy_assignable_if<false> {
162
- copy_assignable_if() noexcept = default;
163
- copy_assignable_if(const copy_assignable_if &) noexcept = default;
164
- copy_assignable_if &operator=(const copy_assignable_if &) &noexcept = delete;
165
- copy_assignable_if &operator=(copy_assignable_if &&) &noexcept = default;
166
- };
167
- } // namespace detail
168
-
169
- // https://cxx.rs/binding/slice.html
170
- template <typename T>
171
- class Slice final
172
- : private detail::copy_assignable_if<std::is_const<T>::value> {
173
- public:
174
- using value_type = T;
175
-
176
- Slice() noexcept;
177
- Slice(T *, std::size_t count) noexcept;
178
-
179
- Slice &operator=(const Slice<T> &) &noexcept = default;
180
- Slice &operator=(Slice<T> &&) &noexcept = default;
181
-
182
- T *data() const noexcept;
183
- std::size_t size() const noexcept;
184
- std::size_t length() const noexcept;
185
- bool empty() const noexcept;
186
-
187
- T &operator[](std::size_t n) const noexcept;
188
- T &at(std::size_t n) const;
189
- T &front() const noexcept;
190
- T &back() const noexcept;
191
-
192
- // Important in order for System V ABI to pass in registers.
193
- Slice(const Slice<T> &) noexcept = default;
194
- ~Slice() noexcept = default;
195
-
196
- class iterator;
197
- iterator begin() const noexcept;
198
- iterator end() const noexcept;
199
-
200
- void swap(Slice &) noexcept;
201
-
202
- private:
203
- class uninit;
204
- Slice(uninit) noexcept;
205
- friend impl<Slice>;
206
- friend void sliceInit(void *, const void *, std::size_t) noexcept;
207
- friend void *slicePtr(const void *) noexcept;
208
- friend std::size_t sliceLen(const void *) noexcept;
209
-
210
- std::array<std::uintptr_t, 2> repr;
211
- };
212
-
213
- template <typename T>
214
- class Slice<T>::iterator final {
215
- public:
216
- using iterator_category = std::random_access_iterator_tag;
217
- using value_type = T;
218
- using difference_type = std::ptrdiff_t;
219
- using pointer = typename std::add_pointer<T>::type;
220
- using reference = typename std::add_lvalue_reference<T>::type;
221
-
222
- reference operator*() const noexcept;
223
- pointer operator->() const noexcept;
224
- reference operator[](difference_type) const noexcept;
225
-
226
- iterator &operator++() noexcept;
227
- iterator operator++(int) noexcept;
228
- iterator &operator--() noexcept;
229
- iterator operator--(int) noexcept;
230
-
231
- iterator &operator+=(difference_type) noexcept;
232
- iterator &operator-=(difference_type) noexcept;
233
- iterator operator+(difference_type) const noexcept;
234
- iterator operator-(difference_type) const noexcept;
235
- difference_type operator-(const iterator &) const noexcept;
236
-
237
- bool operator==(const iterator &) const noexcept;
238
- bool operator!=(const iterator &) const noexcept;
239
- bool operator<(const iterator &) const noexcept;
240
- bool operator<=(const iterator &) const noexcept;
241
- bool operator>(const iterator &) const noexcept;
242
- bool operator>=(const iterator &) const noexcept;
243
-
244
- private:
245
- friend class Slice;
246
- void *pos;
247
- std::size_t stride;
248
- };
249
- #endif // CXXBRIDGE1_RUST_SLICE
250
-
251
- #ifndef CXXBRIDGE1_RUST_BOX
252
- // https://cxx.rs/binding/box.html
253
- template <typename T>
254
- class Box final {
255
- public:
256
- using element_type = T;
257
- using const_pointer =
258
- typename std::add_pointer<typename std::add_const<T>::type>::type;
259
- using pointer = typename std::add_pointer<T>::type;
260
-
261
- Box() = delete;
262
- Box(Box &&) noexcept;
263
- ~Box() noexcept;
264
-
265
- explicit Box(const T &);
266
- explicit Box(T &&);
267
-
268
- Box &operator=(Box &&) &noexcept;
269
-
270
- const T *operator->() const noexcept;
271
- const T &operator*() const noexcept;
272
- T *operator->() noexcept;
273
- T &operator*() noexcept;
274
-
275
- template <typename... Fields>
276
- static Box in_place(Fields &&...);
277
-
278
- void swap(Box &) noexcept;
279
-
280
- // Important: requires that `raw` came from an into_raw call. Do not pass a
281
- // pointer from `new` or any other source.
282
- static Box from_raw(T *) noexcept;
283
-
284
- T *into_raw() noexcept;
285
-
286
- /* Deprecated */ using value_type = element_type;
287
-
288
- private:
289
- class uninit;
290
- class allocation;
291
- Box(uninit) noexcept;
292
- void drop() noexcept;
293
-
294
- friend void swap(Box &lhs, Box &rhs) noexcept { lhs.swap(rhs); }
295
-
296
- T *ptr;
297
- };
298
- #endif // CXXBRIDGE1_RUST_BOX
299
-
300
- #ifndef CXXBRIDGE1_RUST_VEC
301
- // https://cxx.rs/binding/vec.html
302
- template <typename T>
303
- class Vec final {
304
- public:
305
- using value_type = T;
306
-
307
- Vec() noexcept;
308
- Vec(std::initializer_list<T>);
309
- Vec(const Vec &);
310
- Vec(Vec &&) noexcept;
311
- ~Vec() noexcept;
312
-
313
- Vec &operator=(Vec &&) &noexcept;
314
- Vec &operator=(const Vec &) &;
315
-
316
- std::size_t size() const noexcept;
317
- bool empty() const noexcept;
318
- const T *data() const noexcept;
319
- T *data() noexcept;
320
- std::size_t capacity() const noexcept;
321
-
322
- const T &operator[](std::size_t n) const noexcept;
323
- const T &at(std::size_t n) const;
324
- const T &front() const noexcept;
325
- const T &back() const noexcept;
326
-
327
- T &operator[](std::size_t n) noexcept;
328
- T &at(std::size_t n);
329
- T &front() noexcept;
330
- T &back() noexcept;
331
-
332
- void reserve(std::size_t new_cap);
333
- void push_back(const T &value);
334
- void push_back(T &&value);
335
- template <typename... Args>
336
- void emplace_back(Args &&...args);
337
- void truncate(std::size_t len);
338
- void clear();
339
-
340
- using iterator = typename Slice<T>::iterator;
341
- iterator begin() noexcept;
342
- iterator end() noexcept;
343
-
344
- using const_iterator = typename Slice<const T>::iterator;
345
- const_iterator begin() const noexcept;
346
- const_iterator end() const noexcept;
347
- const_iterator cbegin() const noexcept;
348
- const_iterator cend() const noexcept;
349
-
350
- void swap(Vec &) noexcept;
351
-
352
- // Internal API only intended for the cxxbridge code generator.
353
- Vec(unsafe_bitcopy_t, const Vec &) noexcept;
354
-
355
- private:
356
- void reserve_total(std::size_t new_cap) noexcept;
357
- void set_len(std::size_t len) noexcept;
358
- void drop() noexcept;
359
-
360
- friend void swap(Vec &lhs, Vec &rhs) noexcept { lhs.swap(rhs); }
361
-
362
- // Size and alignment statically verified by rust_vec.rs.
363
- std::array<std::uintptr_t, 3> repr;
364
- };
365
- #endif // CXXBRIDGE1_RUST_VEC
366
-
367
- #ifndef CXXBRIDGE1_RUST_FN
368
- // https://cxx.rs/binding/fn.html
369
- template <typename Signature>
370
- class Fn;
371
-
372
- template <typename Ret, typename... Args>
373
- class Fn<Ret(Args...)> final {
374
- public:
375
- Ret operator()(Args... args) const noexcept;
376
- Fn operator*() const noexcept;
377
-
378
- private:
379
- Ret (*trampoline)(Args..., void *fn) noexcept;
380
- void *fn;
381
- };
382
- #endif // CXXBRIDGE1_RUST_FN
383
-
384
- #ifndef CXXBRIDGE1_RUST_ERROR
385
- #define CXXBRIDGE1_RUST_ERROR
386
- // https://cxx.rs/binding/result.html
387
- class Error final : public std::exception {
388
- public:
389
- Error(const Error &);
390
- Error(Error &&) noexcept;
391
- ~Error() noexcept override;
392
-
393
- Error &operator=(const Error &) &;
394
- Error &operator=(Error &&) &noexcept;
395
-
396
- const char *what() const noexcept override;
397
-
398
- private:
399
- Error() noexcept = default;
400
- friend impl<Error>;
401
- const char *msg;
402
- std::size_t len;
403
- };
404
- #endif // CXXBRIDGE1_RUST_ERROR
405
-
406
- #ifndef CXXBRIDGE1_RUST_ISIZE
407
- #define CXXBRIDGE1_RUST_ISIZE
408
- #if defined(_WIN32)
409
- using isize = SSIZE_T;
410
- #else
411
- using isize = ssize_t;
412
- #endif
413
- #endif // CXXBRIDGE1_RUST_ISIZE
414
-
415
- std::ostream &operator<<(std::ostream &, const String &);
416
- std::ostream &operator<<(std::ostream &, const Str &);
417
-
418
- #ifndef CXXBRIDGE1_RUST_OPAQUE
419
- #define CXXBRIDGE1_RUST_OPAQUE
420
- // Base class of generated opaque Rust types.
421
- class Opaque {
422
- public:
423
- Opaque() = delete;
424
- Opaque(const Opaque &) = delete;
425
- ~Opaque() = delete;
426
- };
427
- #endif // CXXBRIDGE1_RUST_OPAQUE
428
-
429
- template <typename T>
430
- std::size_t size_of();
431
- template <typename T>
432
- std::size_t align_of();
433
-
434
- // IsRelocatable<T> is used in assertions that a C++ type passed by value
435
- // between Rust and C++ is soundly relocatable by Rust.
436
- //
437
- // There may be legitimate reasons to opt out of the check for support of types
438
- // that the programmer knows are soundly Rust-movable despite not being
439
- // recognized as such by the C++ type system due to a move constructor or
440
- // destructor. To opt out of the relocatability check, do either of the
441
- // following things in any header used by `include!` in the bridge.
442
- //
443
- // --- if you define the type:
444
- // struct MyType {
445
- // ...
446
- // + using IsRelocatable = std::true_type;
447
- // };
448
- //
449
- // --- otherwise:
450
- // + template <>
451
- // + struct rust::IsRelocatable<MyType> : std::true_type {};
452
- template <typename T>
453
- struct IsRelocatable;
454
-
455
- using u8 = std::uint8_t;
456
- using u16 = std::uint16_t;
457
- using u32 = std::uint32_t;
458
- using u64 = std::uint64_t;
459
- using usize = std::size_t; // see static asserts in cxx.cc
460
- using i8 = std::int8_t;
461
- using i16 = std::int16_t;
462
- using i32 = std::int32_t;
463
- using i64 = std::int64_t;
464
- using f32 = float;
465
- using f64 = double;
466
-
467
- // Snake case aliases for use in code that uses this style for type names.
468
- using string = String;
469
- using str = Str;
470
- template <typename T>
471
- using slice = Slice<T>;
472
- template <typename T>
473
- using box = Box<T>;
474
- template <typename T>
475
- using vec = Vec<T>;
476
- using error = Error;
477
- template <typename Signature>
478
- using fn = Fn<Signature>;
479
- template <typename T>
480
- using is_relocatable = IsRelocatable<T>;
481
-
482
-
483
-
484
- ////////////////////////////////////////////////////////////////////////////////
485
- /// end public API, begin implementation details
486
-
487
- #ifndef CXXBRIDGE1_PANIC
488
- #define CXXBRIDGE1_PANIC
489
- template <typename Exception>
490
- void panic [[noreturn]] (const char *msg);
491
- #endif // CXXBRIDGE1_PANIC
492
-
493
- #ifndef CXXBRIDGE1_RUST_FN
494
- #define CXXBRIDGE1_RUST_FN
495
- template <typename Ret, typename... Args>
496
- Ret Fn<Ret(Args...)>::operator()(Args... args) const noexcept {
497
- return (*this->trampoline)(std::forward<Args>(args)..., this->fn);
498
- }
499
-
500
- template <typename Ret, typename... Args>
501
- Fn<Ret(Args...)> Fn<Ret(Args...)>::operator*() const noexcept {
502
- return *this;
503
- }
504
- #endif // CXXBRIDGE1_RUST_FN
505
-
506
- #ifndef CXXBRIDGE1_RUST_BITCOPY_T
507
- #define CXXBRIDGE1_RUST_BITCOPY_T
508
- struct unsafe_bitcopy_t final {
509
- explicit unsafe_bitcopy_t() = default;
510
- };
511
- #endif // CXXBRIDGE1_RUST_BITCOPY_T
512
-
513
- #ifndef CXXBRIDGE1_RUST_BITCOPY
514
- #define CXXBRIDGE1_RUST_BITCOPY
515
- constexpr unsafe_bitcopy_t unsafe_bitcopy{};
516
- #endif // CXXBRIDGE1_RUST_BITCOPY
517
-
518
- #ifndef CXXBRIDGE1_RUST_SLICE
519
- #define CXXBRIDGE1_RUST_SLICE
520
- template <typename T>
521
- Slice<T>::Slice() noexcept {
522
- sliceInit(this, reinterpret_cast<void *>(align_of<T>()), 0);
523
- }
524
-
525
- template <typename T>
526
- Slice<T>::Slice(T *s, std::size_t count) noexcept {
527
- assert(s != nullptr || count == 0);
528
- sliceInit(this,
529
- s == nullptr && count == 0
530
- ? reinterpret_cast<void *>(align_of<T>())
531
- : const_cast<typename std::remove_const<T>::type *>(s),
532
- count);
533
- }
534
-
535
- template <typename T>
536
- T *Slice<T>::data() const noexcept {
537
- return reinterpret_cast<T *>(slicePtr(this));
538
- }
539
-
540
- template <typename T>
541
- std::size_t Slice<T>::size() const noexcept {
542
- return sliceLen(this);
543
- }
544
-
545
- template <typename T>
546
- std::size_t Slice<T>::length() const noexcept {
547
- return this->size();
548
- }
549
-
550
- template <typename T>
551
- bool Slice<T>::empty() const noexcept {
552
- return this->size() == 0;
553
- }
554
-
555
- template <typename T>
556
- T &Slice<T>::operator[](std::size_t n) const noexcept {
557
- assert(n < this->size());
558
- auto ptr = static_cast<char *>(slicePtr(this)) + size_of<T>() * n;
559
- return *reinterpret_cast<T *>(ptr);
560
- }
561
-
562
- template <typename T>
563
- T &Slice<T>::at(std::size_t n) const {
564
- if (n >= this->size()) {
565
- panic<std::out_of_range>("rust::Slice index out of range");
566
- }
567
- return (*this)[n];
568
- }
569
-
570
- template <typename T>
571
- T &Slice<T>::front() const noexcept {
572
- assert(!this->empty());
573
- return (*this)[0];
574
- }
575
-
576
- template <typename T>
577
- T &Slice<T>::back() const noexcept {
578
- assert(!this->empty());
579
- return (*this)[this->size() - 1];
580
- }
581
-
582
- template <typename T>
583
- typename Slice<T>::iterator::reference
584
- Slice<T>::iterator::operator*() const noexcept {
585
- return *static_cast<T *>(this->pos);
586
- }
587
-
588
- template <typename T>
589
- typename Slice<T>::iterator::pointer
590
- Slice<T>::iterator::operator->() const noexcept {
591
- return static_cast<T *>(this->pos);
592
- }
593
-
594
- template <typename T>
595
- typename Slice<T>::iterator::reference Slice<T>::iterator::operator[](
596
- typename Slice<T>::iterator::difference_type n) const noexcept {
597
- auto ptr = static_cast<char *>(this->pos) + this->stride * n;
598
- return *reinterpret_cast<T *>(ptr);
599
- }
600
-
601
- template <typename T>
602
- typename Slice<T>::iterator &Slice<T>::iterator::operator++() noexcept {
603
- this->pos = static_cast<char *>(this->pos) + this->stride;
604
- return *this;
605
- }
606
-
607
- template <typename T>
608
- typename Slice<T>::iterator Slice<T>::iterator::operator++(int) noexcept {
609
- auto ret = iterator(*this);
610
- this->pos = static_cast<char *>(this->pos) + this->stride;
611
- return ret;
612
- }
613
-
614
- template <typename T>
615
- typename Slice<T>::iterator &Slice<T>::iterator::operator--() noexcept {
616
- this->pos = static_cast<char *>(this->pos) - this->stride;
617
- return *this;
618
- }
619
-
620
- template <typename T>
621
- typename Slice<T>::iterator Slice<T>::iterator::operator--(int) noexcept {
622
- auto ret = iterator(*this);
623
- this->pos = static_cast<char *>(this->pos) - this->stride;
624
- return ret;
625
- }
626
-
627
- template <typename T>
628
- typename Slice<T>::iterator &Slice<T>::iterator::operator+=(
629
- typename Slice<T>::iterator::difference_type n) noexcept {
630
- this->pos = static_cast<char *>(this->pos) + this->stride * n;
631
- return *this;
632
- }
633
-
634
- template <typename T>
635
- typename Slice<T>::iterator &Slice<T>::iterator::operator-=(
636
- typename Slice<T>::iterator::difference_type n) noexcept {
637
- this->pos = static_cast<char *>(this->pos) - this->stride * n;
638
- return *this;
639
- }
640
-
641
- template <typename T>
642
- typename Slice<T>::iterator Slice<T>::iterator::operator+(
643
- typename Slice<T>::iterator::difference_type n) const noexcept {
644
- auto ret = iterator(*this);
645
- ret.pos = static_cast<char *>(this->pos) + this->stride * n;
646
- return ret;
647
- }
648
-
649
- template <typename T>
650
- typename Slice<T>::iterator Slice<T>::iterator::operator-(
651
- typename Slice<T>::iterator::difference_type n) const noexcept {
652
- auto ret = iterator(*this);
653
- ret.pos = static_cast<char *>(this->pos) - this->stride * n;
654
- return ret;
655
- }
656
-
657
- template <typename T>
658
- typename Slice<T>::iterator::difference_type
659
- Slice<T>::iterator::operator-(const iterator &other) const noexcept {
660
- auto diff = std::distance(static_cast<char *>(other.pos),
661
- static_cast<char *>(this->pos));
662
- return diff / this->stride;
663
- }
664
-
665
- template <typename T>
666
- bool Slice<T>::iterator::operator==(const iterator &other) const noexcept {
667
- return this->pos == other.pos;
668
- }
669
-
670
- template <typename T>
671
- bool Slice<T>::iterator::operator!=(const iterator &other) const noexcept {
672
- return this->pos != other.pos;
673
- }
674
-
675
- template <typename T>
676
- bool Slice<T>::iterator::operator<(const iterator &other) const noexcept {
677
- return this->pos < other.pos;
678
- }
679
-
680
- template <typename T>
681
- bool Slice<T>::iterator::operator<=(const iterator &other) const noexcept {
682
- return this->pos <= other.pos;
683
- }
684
-
685
- template <typename T>
686
- bool Slice<T>::iterator::operator>(const iterator &other) const noexcept {
687
- return this->pos > other.pos;
688
- }
689
-
690
- template <typename T>
691
- bool Slice<T>::iterator::operator>=(const iterator &other) const noexcept {
692
- return this->pos >= other.pos;
693
- }
694
-
695
- template <typename T>
696
- typename Slice<T>::iterator Slice<T>::begin() const noexcept {
697
- iterator it;
698
- it.pos = slicePtr(this);
699
- it.stride = size_of<T>();
700
- return it;
701
- }
702
-
703
- template <typename T>
704
- typename Slice<T>::iterator Slice<T>::end() const noexcept {
705
- iterator it = this->begin();
706
- it.pos = static_cast<char *>(it.pos) + it.stride * this->size();
707
- return it;
708
- }
709
-
710
- template <typename T>
711
- void Slice<T>::swap(Slice &rhs) noexcept {
712
- std::swap(*this, rhs);
713
- }
714
- #endif // CXXBRIDGE1_RUST_SLICE
715
-
716
- #ifndef CXXBRIDGE1_RUST_BOX
717
- #define CXXBRIDGE1_RUST_BOX
718
- template <typename T>
719
- class Box<T>::uninit {};
720
-
721
- template <typename T>
722
- class Box<T>::allocation {
723
- static T *alloc() noexcept;
724
- static void dealloc(T *) noexcept;
725
-
726
- public:
727
- allocation() noexcept : ptr(alloc()) {}
728
- ~allocation() noexcept {
729
- if (this->ptr) {
730
- dealloc(this->ptr);
731
- }
732
- }
733
- T *ptr;
734
- };
735
-
736
- template <typename T>
737
- Box<T>::Box(Box &&other) noexcept : ptr(other.ptr) {
738
- other.ptr = nullptr;
739
- }
740
-
741
- template <typename T>
742
- Box<T>::Box(const T &val) {
743
- allocation alloc;
744
- ::new (alloc.ptr) T(val);
745
- this->ptr = alloc.ptr;
746
- alloc.ptr = nullptr;
747
- }
748
-
749
- template <typename T>
750
- Box<T>::Box(T &&val) {
751
- allocation alloc;
752
- ::new (alloc.ptr) T(std::move(val));
753
- this->ptr = alloc.ptr;
754
- alloc.ptr = nullptr;
755
- }
756
-
757
- template <typename T>
758
- Box<T>::~Box() noexcept {
759
- if (this->ptr) {
760
- this->drop();
761
- }
762
- }
763
-
764
- template <typename T>
765
- Box<T> &Box<T>::operator=(Box &&other) &noexcept {
766
- if (this->ptr) {
767
- this->drop();
768
- }
769
- this->ptr = other.ptr;
770
- other.ptr = nullptr;
771
- return *this;
772
- }
773
-
774
- template <typename T>
775
- const T *Box<T>::operator->() const noexcept {
776
- return this->ptr;
777
- }
778
-
779
- template <typename T>
780
- const T &Box<T>::operator*() const noexcept {
781
- return *this->ptr;
782
- }
783
-
784
- template <typename T>
785
- T *Box<T>::operator->() noexcept {
786
- return this->ptr;
787
- }
788
-
789
- template <typename T>
790
- T &Box<T>::operator*() noexcept {
791
- return *this->ptr;
792
- }
793
-
794
- template <typename T>
795
- template <typename... Fields>
796
- Box<T> Box<T>::in_place(Fields &&...fields) {
797
- allocation alloc;
798
- auto ptr = alloc.ptr;
799
- ::new (ptr) T{std::forward<Fields>(fields)...};
800
- alloc.ptr = nullptr;
801
- return from_raw(ptr);
802
- }
803
-
804
- template <typename T>
805
- void Box<T>::swap(Box &rhs) noexcept {
806
- using std::swap;
807
- swap(this->ptr, rhs.ptr);
808
- }
809
-
810
- template <typename T>
811
- Box<T> Box<T>::from_raw(T *raw) noexcept {
812
- Box box = uninit{};
813
- box.ptr = raw;
814
- return box;
815
- }
816
-
817
- template <typename T>
818
- T *Box<T>::into_raw() noexcept {
819
- T *raw = this->ptr;
820
- this->ptr = nullptr;
821
- return raw;
822
- }
823
-
824
- template <typename T>
825
- Box<T>::Box(uninit) noexcept {}
826
- #endif // CXXBRIDGE1_RUST_BOX
827
-
828
- #ifndef CXXBRIDGE1_RUST_VEC
829
- #define CXXBRIDGE1_RUST_VEC
830
- template <typename T>
831
- Vec<T>::Vec(std::initializer_list<T> init) : Vec{} {
832
- this->reserve_total(init.size());
833
- std::move(init.begin(), init.end(), std::back_inserter(*this));
834
- }
835
-
836
- template <typename T>
837
- Vec<T>::Vec(const Vec &other) : Vec() {
838
- this->reserve_total(other.size());
839
- std::copy(other.begin(), other.end(), std::back_inserter(*this));
840
- }
841
-
842
- template <typename T>
843
- Vec<T>::Vec(Vec &&other) noexcept : repr(other.repr) {
844
- new (&other) Vec();
845
- }
846
-
847
- template <typename T>
848
- Vec<T>::~Vec() noexcept {
849
- this->drop();
850
- }
851
-
852
- template <typename T>
853
- Vec<T> &Vec<T>::operator=(Vec &&other) &noexcept {
854
- this->drop();
855
- this->repr = other.repr;
856
- new (&other) Vec();
857
- return *this;
858
- }
859
-
860
- template <typename T>
861
- Vec<T> &Vec<T>::operator=(const Vec &other) & {
862
- if (this != &other) {
863
- this->drop();
864
- new (this) Vec(other);
865
- }
866
- return *this;
867
- }
868
-
869
- template <typename T>
870
- bool Vec<T>::empty() const noexcept {
871
- return this->size() == 0;
872
- }
873
-
874
- template <typename T>
875
- T *Vec<T>::data() noexcept {
876
- return const_cast<T *>(const_cast<const Vec<T> *>(this)->data());
877
- }
878
-
879
- template <typename T>
880
- const T &Vec<T>::operator[](std::size_t n) const noexcept {
881
- assert(n < this->size());
882
- auto data = reinterpret_cast<const char *>(this->data());
883
- return *reinterpret_cast<const T *>(data + n * size_of<T>());
884
- }
885
-
886
- template <typename T>
887
- const T &Vec<T>::at(std::size_t n) const {
888
- if (n >= this->size()) {
889
- panic<std::out_of_range>("rust::Vec index out of range");
890
- }
891
- return (*this)[n];
892
- }
893
-
894
- template <typename T>
895
- const T &Vec<T>::front() const noexcept {
896
- assert(!this->empty());
897
- return (*this)[0];
898
- }
899
-
900
- template <typename T>
901
- const T &Vec<T>::back() const noexcept {
902
- assert(!this->empty());
903
- return (*this)[this->size() - 1];
904
- }
905
-
906
- template <typename T>
907
- T &Vec<T>::operator[](std::size_t n) noexcept {
908
- assert(n < this->size());
909
- auto data = reinterpret_cast<char *>(this->data());
910
- return *reinterpret_cast<T *>(data + n * size_of<T>());
911
- }
912
-
913
- template <typename T>
914
- T &Vec<T>::at(std::size_t n) {
915
- if (n >= this->size()) {
916
- panic<std::out_of_range>("rust::Vec index out of range");
917
- }
918
- return (*this)[n];
919
- }
920
-
921
- template <typename T>
922
- T &Vec<T>::front() noexcept {
923
- assert(!this->empty());
924
- return (*this)[0];
925
- }
926
-
927
- template <typename T>
928
- T &Vec<T>::back() noexcept {
929
- assert(!this->empty());
930
- return (*this)[this->size() - 1];
931
- }
932
-
933
- template <typename T>
934
- void Vec<T>::reserve(std::size_t new_cap) {
935
- this->reserve_total(new_cap);
936
- }
937
-
938
- template <typename T>
939
- void Vec<T>::push_back(const T &value) {
940
- this->emplace_back(value);
941
- }
942
-
943
- template <typename T>
944
- void Vec<T>::push_back(T &&value) {
945
- this->emplace_back(std::move(value));
946
- }
947
-
948
- template <typename T>
949
- template <typename... Args>
950
- void Vec<T>::emplace_back(Args &&...args) {
951
- auto size = this->size();
952
- this->reserve_total(size + 1);
953
- ::new (reinterpret_cast<T *>(reinterpret_cast<char *>(this->data()) +
954
- size * size_of<T>()))
955
- T(std::forward<Args>(args)...);
956
- this->set_len(size + 1);
957
- }
958
-
959
- template <typename T>
960
- void Vec<T>::clear() {
961
- this->truncate(0);
962
- }
963
-
964
- template <typename T>
965
- typename Vec<T>::iterator Vec<T>::begin() noexcept {
966
- return Slice<T>(this->data(), this->size()).begin();
967
- }
968
-
969
- template <typename T>
970
- typename Vec<T>::iterator Vec<T>::end() noexcept {
971
- return Slice<T>(this->data(), this->size()).end();
972
- }
973
-
974
- template <typename T>
975
- typename Vec<T>::const_iterator Vec<T>::begin() const noexcept {
976
- return this->cbegin();
977
- }
978
-
979
- template <typename T>
980
- typename Vec<T>::const_iterator Vec<T>::end() const noexcept {
981
- return this->cend();
982
- }
983
-
984
- template <typename T>
985
- typename Vec<T>::const_iterator Vec<T>::cbegin() const noexcept {
986
- return Slice<const T>(this->data(), this->size()).begin();
987
- }
988
-
989
- template <typename T>
990
- typename Vec<T>::const_iterator Vec<T>::cend() const noexcept {
991
- return Slice<const T>(this->data(), this->size()).end();
992
- }
993
-
994
- template <typename T>
995
- void Vec<T>::swap(Vec &rhs) noexcept {
996
- using std::swap;
997
- swap(this->repr, rhs.repr);
998
- }
999
-
1000
- // Internal API only intended for the cxxbridge code generator.
1001
- template <typename T>
1002
- Vec<T>::Vec(unsafe_bitcopy_t, const Vec &bits) noexcept : repr(bits.repr) {}
1003
- #endif // CXXBRIDGE1_RUST_VEC
1004
-
1005
- #ifndef CXXBRIDGE1_IS_COMPLETE
1006
- #define CXXBRIDGE1_IS_COMPLETE
1007
- namespace detail {
1008
- namespace {
1009
- template <typename T, typename = std::size_t>
1010
- struct is_complete : std::false_type {};
1011
- template <typename T>
1012
- struct is_complete<T, decltype(sizeof(T))> : std::true_type {};
1013
- } // namespace
1014
- } // namespace detail
1015
- #endif // CXXBRIDGE1_IS_COMPLETE
1016
-
1017
- #ifndef CXXBRIDGE1_LAYOUT
1018
- #define CXXBRIDGE1_LAYOUT
1019
- class layout {
1020
- template <typename T>
1021
- friend std::size_t size_of();
1022
- template <typename T>
1023
- friend std::size_t align_of();
1024
- template <typename T>
1025
- static typename std::enable_if<std::is_base_of<Opaque, T>::value,
1026
- std::size_t>::type
1027
- do_size_of() {
1028
- return T::layout::size();
1029
- }
1030
- template <typename T>
1031
- static typename std::enable_if<!std::is_base_of<Opaque, T>::value,
1032
- std::size_t>::type
1033
- do_size_of() {
1034
- return sizeof(T);
1035
- }
1036
- template <typename T>
1037
- static
1038
- typename std::enable_if<detail::is_complete<T>::value, std::size_t>::type
1039
- size_of() {
1040
- return do_size_of<T>();
1041
- }
1042
- template <typename T>
1043
- static typename std::enable_if<std::is_base_of<Opaque, T>::value,
1044
- std::size_t>::type
1045
- do_align_of() {
1046
- return T::layout::align();
1047
- }
1048
- template <typename T>
1049
- static typename std::enable_if<!std::is_base_of<Opaque, T>::value,
1050
- std::size_t>::type
1051
- do_align_of() {
1052
- return alignof(T);
1053
- }
1054
- template <typename T>
1055
- static
1056
- typename std::enable_if<detail::is_complete<T>::value, std::size_t>::type
1057
- align_of() {
1058
- return do_align_of<T>();
1059
- }
1060
- };
1061
-
1062
- template <typename T>
1063
- std::size_t size_of() {
1064
- return layout::size_of<T>();
1065
- }
1066
-
1067
- template <typename T>
1068
- std::size_t align_of() {
1069
- return layout::align_of<T>();
1070
- }
1071
- #endif // CXXBRIDGE1_LAYOUT
1072
-
1073
- #ifndef CXXBRIDGE1_RELOCATABLE
1074
- #define CXXBRIDGE1_RELOCATABLE
1075
- namespace detail {
1076
- template <typename... Ts>
1077
- struct make_void {
1078
- using type = void;
1079
- };
1080
-
1081
- template <typename... Ts>
1082
- using void_t = typename make_void<Ts...>::type;
1083
-
1084
- template <typename Void, template <typename...> class, typename...>
1085
- struct detect : std::false_type {};
1086
- template <template <typename...> class T, typename... A>
1087
- struct detect<void_t<T<A...>>, T, A...> : std::true_type {};
1088
-
1089
- template <template <typename...> class T, typename... A>
1090
- using is_detected = detect<void, T, A...>;
1091
-
1092
- template <typename T>
1093
- using detect_IsRelocatable = typename T::IsRelocatable;
1094
-
1095
- template <typename T>
1096
- struct get_IsRelocatable
1097
- : std::is_same<typename T::IsRelocatable, std::true_type> {};
1098
- } // namespace detail
1099
-
1100
- template <typename T>
1101
- struct IsRelocatable
1102
- : std::conditional<
1103
- detail::is_detected<detail::detect_IsRelocatable, T>::value,
1104
- detail::get_IsRelocatable<T>,
1105
- std::integral_constant<
1106
- bool, std::is_trivially_move_constructible<T>::value &&
1107
- std::is_trivially_destructible<T>::value>>::type {};
1108
- #endif // CXXBRIDGE1_RELOCATABLE
1109
-
1110
- } // namespace cxxbridge1
1111
- } // namespace rust