- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 10 Feb 2015 04:25:36 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 10 February 2015 12:26:03 UTC
Shall we add a new mode to ReadableByteStream, say, manual feed mode, named after manual paper feed of printers. ReadableByteStream would have a method named `.feedArrayBuffer(arrayBuffer, offset, size)`. Via this method, the user feeds a tuple of an ArrayBuffer, offset and size. The tuples are queued and used by the ReadableByteStream to create the result ArrayBuffers to return from the `.read()` method. How to interpret the `size` argument is up to the API that returns the ReadableByteStream. The `state` and `read()` are kept the same as `ReadableStream` but ArrayBuffer feeding happens asynchronous to them. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/253#issuecomment-73691129
Received on Tuesday, 10 February 2015 12:26:03 UTC