Re: [whatwg/fetch] Allow pre-allocating array buffer for .arrayBuffer(), to allow zero-copy loads (Issue #1615)

Do BYOB streams not help here?

I suppose this could be similar to https://encoding.spec.whatwg.org/#dom-textencoder-encodeinto. We cannot rely on `Content-Length` being present so we need to be able to deal with overflow. Perhaps we can allow repeated calls, though that would be a bit of a departure from existing `Body` mixin methods.

Related: #897.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1615#issuecomment-1456149583
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1615/1456149583@github.com>

Received on Monday, 6 March 2023 13:36:29 UTC