- From: Arun Ranganathan <aranganathan@mozilla.com>
- Date: Thu, 26 Apr 2012 18:13:42 -0400
- To: David Herman <dherman@mozilla.com>
- Cc: Eric U <ericu@google.com>, Boris Zbarsky <bzbarsky@mit.edu>, public-webapps@w3.org, Anne van Kesteren <annevk@opera.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