- From: Domenic Denicola <d@domenic.me>
- Date: Wed, 4 Mar 2015 21:06:57 +0000
- To: Jason Orendorff <jason.orendorff@gmail.com>
- CC: "es-discuss@mozilla.org" <es-discuss@mozilla.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Thanks very much for the feedback Jason! > But you can support both, like this: > > pull(DataView) -> Promise<DataView> > pull(TypedArrayView) -> Promise<TypedArrayView of the same type> > > A view argument conveniently provides just the three pieces of information > you need, plus a type. I thought of that. However, I found it a bit strange that passing this function a view onto bytes [256, 512] of a 1024-byte buffer would detach the entire 1024-byte buffer. What do you think?
Received on Wednesday, 4 March 2015 21:07:26 UTC