[whatwg] API for encoding/decoding ArrayBuffers into text
chuck at jumis.com
Fri Mar 16 14:44:53 PDT 2012
On 3/16/2012 2:17 PM, Boris Zbarsky wrote:
> On 3/16/12 5:12 PM, Joshua Bell wrote:
>> FYI, there was some follow up IRC conversation on this. With Typed
>> as currently specified - that is, that Uint16Array has platform
> For what it's worth, it seems like this is something we should
> seriously consider changing so as to make the web-visible endianness
> of typed arrays always be little-endian. Authors are actively writing
> code (and being encouraged to do so by technology evangelists) that
> makes that assumption anyway....
The DataView set of methods already does this work. The raw arrays are
supposed to have platform endianness.
If you see some evangelists skipping the endian check, send them an
e-mail and let them know.
More information about the whatwg