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

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

From: Charles Pritchard <chuck@jumis.com>
Date: Wed, 11 Apr 2012 14:47:50 -0700
Message-ID: <4F85FC06.7070408@jumis.com>
To: Kenneth Russell <kbr@google.com>
CC: Boris Zbarsky <bzbarsky@mit.edu>, public-webapps <public-webapps@w3.org>
On 4/11/2012 2:41 PM, Kenneth Russell wrote:
> On Wed, Apr 11, 2012 at 10:04 AM, Boris Zbarsky<bzbarsky@mit.edu>  wrote:
>> >  Seems like right now passing a typed array to send() requires a bit of extra
>> >  hoop-jumping to pass the .buffer instead, right?  Is that desirable?
> It may be convenient to add an overload to send() (presumably on both
> XHR and WebSocket? Any others?) accepting ArrayBufferView. As pointed

It's convenient.

xhr.send(view); // shorthand
view.byteOffset+view.byteLength)); // longhand.


Can we get a voice from MS? They've been supporting typed arrays in IE10 
for awhile.
If we're going to have this method, I'd really like to see it in IE10.

Boris, How do we feature test for support of the shorthand method?

Received on Wednesday, 11 April 2012 21:48:11 UTC

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