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

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