- From: Yutaka Hirano <notifications@github.com>
- Date: Tue, 21 Apr 2015 23:55:39 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Message-ID: <whatwg/streams/issues/329/95052407@github.com>
This comment is for byte streams. ``` const ts = TransformStream.identity({ highWaterMark: 0 }); const ws = ts.writable; const rs = ts.readable; const writer = (get a reader); const reader = (get a writer); ``` Let me define readers as: | | who allocates a buffer | has read ack ? | |-------------|---------------------------------|---------------------| | default | readable stream | N | | BYOB | user | N | | with-ack | readable stream | Y | Let me define writers as: | | returns buffer when write-fulfilled? | |-------------|------------------------------------------------| | default | N | | retaining | Y | It the below behavior reasonable? | w \ r | default | BYOB | with-ack | | ------| ----------|----------|-------------| | default | pass buffer from the writer user to the reader user | buffer the writer user provided buffer and copy it to the reader user provided buffer | pass buffer from the writer user to the reader user | | retaining | Copy the writer user provide buffer and pass it to the reader user. Return the original buffer to the writer user. | Buffer the writer user provided buffer and copy it to the reader user provided buffer. Return the original buffer to the writer user. | Pass buffer from the writer user to the reader user. When the reader user says it's OK to return it, return it to the writer user. | --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/329#issuecomment-95052407
Received on Wednesday, 22 April 2015 06:56:06 UTC