[HTML5] Rename heapCopy to heapSlice.

New heapCopy function copies a TypedArray to the heap.
This commit is contained in:
Fabio Alessandrelli 2021-03-03 15:58:28 +01:00
parent 41c64533b0
commit 751a6f9a63
3 changed files with 18 additions and 4 deletions

View file

@ -86,7 +86,7 @@ const GodotHTTPRequest = {
godot_xhr_send: function (xhrId, p_ptr, p_len) {
let data = null;
if (p_ptr && p_len) {
data = GodotRuntime.heapCopy(HEAP8, p_ptr, p_len);
data = GodotRuntime.heapSlice(HEAP8, p_ptr, p_len);
}
GodotHTTPRequest.requests[xhrId].send(data);
},