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: Thu, 26 Apr 2012 18:13:42 -0400
Cc: Eric U <ericu@google.com>, Boris Zbarsky <bzbarsky@mit.edu>, public-webapps@w3.org, Anne van Kesteren <annevk@opera.com>
Message-Id: <A6795D75-8894-4C89-9A72-AB508844446D@mozilla.com>
To: David Herman <dherman@mozilla.com>

On Apr 24, 2012, at 7:00 PM, David Herman wrote:

> On Apr 24, 2012, at 3:53 PM, David Herman wrote:
>> On Apr 12, 2012, at 2:48 PM, Arun Ranganathan wrote:
>>> I intend to add ArrayBufferView as a parameter to the Blob constructor .
>> Would it be possible also to allow passing an ArrayBuffer with an offset and length as an additional alternative? This would eliminate the need to create a view when you just want a slice of the buffer but don't particularly want/need to think of it as a Uint8/Uint32/whatever array.
> Oh, I just saw in the bug that the idea is to *eliminate* the ArrayBuffer argument option entirely. If that's the case then disregard my question.

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.  

-- A*
Received on Thursday, 26 April 2012 22:14:17 UTC

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