Re: [whatwg/fetch] Incremental read: Why only Uint8Array instead of BufferSource? (Issue #1724)

No, it was aspirational. Initially we designed it such that (byte) streams would only emit Uint8Array to consumers. And later we adopted that for the other direction as well. Mainly for consistency I think, but also with some hope that would allow optimizations.

Most things in the platform that accept buffers should indeed accept BufferSource, but they're not dealing with streams.

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

Message ID: <whatwg/fetch/issues/1724/1822312088@github.com>

Received on Wednesday, 22 November 2023 08:28:49 UTC