- From: Jarred Sumner <notifications@github.com>
- Date: Mon, 25 Mar 2024 01:40:48 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 25 March 2024 08:40:52 UTC
`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