Re: [streams] Readable byte streams should support an internal queue (#353)

> Please suppose that the BYOB interface of a stream is given a Uint16Array with 1 element (i.e. backed with 2 byte long ArrayBuffer)

I see, that makes sense. So to be clear:

- Uint16Array byteLength = 2, 1 byte filled => error (your case)
- Uint16Array byteLength = 20, 2 bytes filled => not an error?
- Uint16Array byteLength = 20, 3 bytes filled => error?

I cannot really tell whether or not this should be an error (or if the consumer should just deal with the fact they didn't get enough bytes) so am happy to go with your judgement.

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

Received on Thursday, 28 May 2015 20:28:29 UTC