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

Yeah, we discussed that as beginWrite() before which returns a buffer to write into. But passing a callback like isonmad's suggestion is also an option and simpler as we don't have to provide an additional method to take the written buffer.
https://github.com/whatwg/streams/issues/329#issuecomment-106711552

One issue with returning only the number of bytes written is that it doesn't work if the buffer is transferred. That's why we have respondWithNewView() on the ReadableStreamBYOBRequest.

-- 
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-256945073

Received on Friday, 28 October 2016 15:04:37 UTC