W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 11 Apr 2012 16:16:14 -0400
Message-ID: <4F85E68E.5010703@mit.edu>
To: Glenn Maynard <glenn@zewt.org>
CC: public-webapps <public-webapps@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:33 UTC