[w3c/FileAPI] Reslove Blob to an existing ArrayBuffer (#143)

Currently, Blobs can only be resloved with a newly-created ArrayBuffer.

Sometimes, it would be much more efficient if a Blob can be directly resolved to an existing ArrayBuffer(If the size of ArrayBuffer is sufficient). For example, a content of a very large file can be directly read to the ArrayBuffer of a WASM memory. Without this feature, we need to first call File.ArrayBuffer to resolve the large content to a newly-created ArrayBuffer, and then copy it to the WASM memory.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/143

Received on Friday, 6 December 2019 06:24:07 UTC