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

Is this the right issue to discuss how EOF signal should be returned from reader.read(view)? If we choose to return only a view, we need to represent EOF using any of the value on the ArrayBufferView. Are you fine with the idea that byteLength === 0 is EOF?

Do we want to give the EOF meaning to a view with byteLength === 0 more generally? I mean ByteStreamWriter should handle a view with byteLength === 0 as close? If so, piping will be a little simplified. For normal users, it's not useful, I think.

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

Received on Thursday, 12 March 2015 08:02:17 UTC