Re: [streams] [WIP] Putting a chunk back in the readable stream queue (#275)

@domenic Can't it "peek", see how much data it would actually consume, and then "read" just that many bytes?  As far as I can tell its not changing the order of any bytes here.  I guess this is more conducive to the ReadableByteStream concept.

Alternatively, we could just force corner cases likes to be implemented as a wrapper.  It doesn't put back the data on the underlying source stream, but locally buffers the remaining the data.  It then consults this local buffer first on its next pass through its algorithm.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/275#issuecomment-73252055

Received on Friday, 6 February 2015 15:19:56 UTC