Re: [whatwg/streams] Brainstorming a buffer-reusing version of writable streams (#495)

What about a Reverse BYOB Writer? One that makes an identity TransformStream trivial to implement, once we add `type: "bytes"` option to the TransformStream constructor?

Something like

    writable.getBufferWriter({
        writeInto(buffer) {
          return promiseFulfilledWithNumberOfBytesWrittenAfterAsynchronouslyWritingBytesInto(buffer);
        }
      });


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/495#issuecomment-256519173

Received on Thursday, 27 October 2016 01:01:26 UTC