Add JavaScriptBridge buffer methods

This commit is contained in:
Adam Scott 2024-08-29 09:50:18 -04:00
parent 99a7a9ccd6
commit a9b934b657
No known key found for this signature in database
GPG key ID: F6BA2A0302E21A77
5 changed files with 81 additions and 0 deletions

View file

@ -57,6 +57,8 @@ public:
Variant eval(const String &p_code, bool p_use_global_exec_context = false);
Ref<JavaScriptObject> get_interface(const String &p_interface);
Ref<JavaScriptObject> create_callback(const Callable &p_callable);
bool is_js_buffer(Ref<JavaScriptObject> p_js_obj);
PackedByteArray js_buffer_to_packed_byte_array(Ref<JavaScriptObject> p_js_obj);
Variant _create_object_bind(const Variant **p_args, int p_argcount, Callable::CallError &r_error);
void download_buffer(Vector<uint8_t> p_arr, const String &p_name, const String &p_mime = "application/octet-stream");
bool pwa_needs_update() const;