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

Re: BlobBuilder.append() should take ArrayBufferView in addition to ArrayBuffer

From: Arun Ranganathan <aranganathan@mozilla.com>
Date: Fri, 27 Apr 2012 13:57:52 -0400
Cc: "David Herman" <dherman@mozilla.com>, "Eric U" <ericu@google.com>, "Boris Zbarsky" <bzbarsky@mit.edu>, public-webapps@w3.org
Message-Id: <97B8BC76-9AF0-4059-8493-A3D9CE7568E9@mozilla.com>
To: Anne van Kesteren <annevk@opera.com>

On Apr 27, 2012, at 1:28 AM, Anne van Kesteren wrote:

> On Fri, 27 Apr 2012 00:13:42 +0200, Arun Ranganathan <aranganathan@mozilla.com> wrote:
>> The constructor will switch to use ArrayBufferView in lieu of ArrayBuffer, but the read method exposed on FileReader and FileReaderSync will read files into memory as ArrayBuffers.
> Since the constructor is not widely deployed yet would it not be better to stick to ArrayBufferView exclusively, just like XMLHttpRequest.send()?

The Blob constructor will already use ArrayBufferView.  Above, do you mean, have a method of the sort FileReader.readAsArrayBufferView or something like that?  

*.readAsArrayBuffer is already deployed, and it might be weird to force a view on an ArrayBuffer when read into memory.

-- A*

> -- 
> Anne van Kesteren
> http://annevankesteren.nl/
Received on Friday, 27 April 2012 17:58:21 UTC

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