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 17:48:17 -0400
Message-ID: <4F85FC21.50401@mit.edu>
To: Kenneth Russell <kbr@google.com>
CC: public-webapps <public-webapps@w3.org>
On 4/11/12 5:41 PM, Kenneth Russell wrote:
> Sending an ArrayBufferView would still have to use "arraybuffer" as
> the type of data. I don't think it would be a good idea to try to
> instantiate the same subclass of ArrayBufferView on the receiving
> side.

I'm not sure what this means...

For XHR.send(), sending an ArrayBufferView should take the byte array 
that the ArrayBufferView is mapping, and send that.  It's possible to 
achieve the same thing now with some hoop jumping involving a possible 
buffer copy; I'm just saying we should remove the need for that hoop 
jumping.

I haven't looked at WebSocket in enough detail to comment intelligently 
on it.

-Boris
Received on Wednesday, 11 April 2012 21:48:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:51 GMT