Re: [whatwg/streams] ReadableStream.prototype.arrayBuffer() (#1019)

`bytes()` seems nice. I think it’s unusual for developers to want to create an `ArrayBuffer`, they’re anlmost always going to either pass it somewhere else or create a `Uint8Array` wrapping it. In JSC iirc creating an ArrayBuffer ends up being more expensive since it becomes a `WastefulTypedArray` internally. As a sidenote, are there plans for `BodyMixin` / `Response` / `Request` & `Blob` to get a `bytes()`? 

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

Message ID: <whatwg/streams/issues/1019/2017476094@github.com>

Received on Monday, 25 March 2024 08:40:52 UTC