Re: [streams] What types does ReadableByteStream's reader's read(x) accept and return? (#295)

> I think the most lenient option here is probably best: allow structural array buffer views or array buffers directly. Alternately we could just allow structural array buffer views. The only difference is that the former allows .read(ab) whereas the latter requires .read({ buffer: ab }).

I'd just keep it consistent with other web APIs such as XHR (accepting ArrayBufferView or ArrayBuffer) unless we find any strong benefit in using the structural array buffer view.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/295#issuecomment-78438007

Received on Thursday, 12 March 2015 08:05:55 UTC