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

>Mainly for consistency I think

Emit Uint8Array, so accept only Uint8Array too, you mean? Kinda make sense but still not consistent with other APIs at this point.

>but also with some hope that would allow optimizations.

Do you remember in what way it can allow optimizations? Getting bytes from typed arrays should be straightforward both in JS and C++, so I don't really follow here.

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

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

Received on Wednesday, 22 November 2023 08:34:06 UTC