Re: Should send() be able to take an ArrayBufferView?

On 4/11/12 4:06 PM, Glenn Maynard wrote:
> It's a bit worse than that, actually: if you want to send only part of a
> buffer, you have to create a whole new ArrayBuffer and copy the data
> over.  If you just pass "view.buffer", you'll send the *whole*
> underlying buffer, not just the slice represented by the view.

Oh, that's just broken.

That argues for the removal of the ArrayBuffer overload, indeed, and 
just leaving the ArrayBufferView version.

-Boris

Received on Wednesday, 11 April 2012 20:16:44 UTC