Re: [streams] ReadableByteStream: pull + pullInto or just pullInto (#363)

At some point the plan was that if you do getReader().read(), it will pre-allocate a buffer for you of a given size, then pass that to pullInto. The size could be determined by an option to the constructor (maybe part of the strategy? or maybe part of the underlying byte source object).

That plan is definitely less powerful than having both pull and pullInto. But maybe it gives a significant enough simplification to be worth it? I am not sure.

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

Received on Tuesday, 16 June 2015 23:31:12 UTC