Re: [streams] Move stuff into controller to make RS and RBS closer (#418)

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