[heycam/webidl] Add some operations bridging BufferSources and byte sequences (#987)

A lot of specs currently hand-wave the details of how to write byte sequences into buffers, or how to construct Uint8Arrays wrapping ArrayBuffers wrapping some bytes. This introduces dedicated algorithms for this. Notably, Streams would use these in the near future to put https://github.com/whatwg/streams/issues/1121 on better footing.

I'd like review here from @syg and/or other ES editors, especially for the "write" operation.
You can view, comment on, or merge this pull request online at:

  https://github.com/heycam/webidl/pull/987

-- Commit Summary --

  * Add some operations bridging BufferSources and byte sequences

-- File Changes --

    M index.bs (42)

-- Patch Links --

https://github.com/heycam/webidl/pull/987.patch
https://github.com/heycam/webidl/pull/987.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/987

Received on Wednesday, 2 June 2021 21:07:38 UTC