Re: [whatwg/streams] do chunk boundaries have to be preserved through to underlying sink? (#739)

To a generic stream, chunks are opaque. ReadableStream has a type: 'bytes' option which causes chunks to be interpreted as sequences of bytes. WritableStream does not have a byte option yet, but it is planned: https://github.com/whatwg/streams/issues/495.

Application code can rely on streams not to modify chunks when the 'bytes' option is not set. In particular, a TransformStream may or may not respect chunk boundaries, depending on what semantics are appropriate.


-- 
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/739#issuecomment-297927338

Received on Friday, 28 April 2017 07:23:26 UTC