mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Add JavaScriptBridge buffer methods
This commit is contained in:
parent
99a7a9ccd6
commit
a9b934b657
5 changed files with 81 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue