- From: Takeshi Yoshino <notifications@github.com>
- Date: Thu, 17 Dec 2015 11:27:28 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Thursday, 17 December 2015 19:27:56 UTC
Here's a quick explanation of the interfaces between controllers and the readable byte stream. Readable byte stream controller: - knows what kind of reader the stream is locked to by `ReadableByteStreamHasReader()` and `ReadableByteStreamHasByobReader()` - knows how many requests there are by `GetNumReadRequests()` and `GetNumReadIntoRequests()` - responds to the requests by `RespondToReadRequest()` and `RespondToReadIntoRequest()` - manipulates the stream's state by `CloseReadableByteStream()`, `ErrorReadableByteStream()` - invokes the pull operation on the underlying byte source appropriately based on the signals from the stream (reader) which are `PullFromReadableByteStream()` and `PullFromReadableByteStreamInto()`. Controllers must implement these operations. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/418#issuecomment-165555949
Received on Thursday, 17 December 2015 19:27:56 UTC