W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

[whatwg] API for encoding/decoding ArrayBuffers into text

From: Charles Pritchard <chuck@jumis.com>
Date: Fri, 16 Mar 2012 14:44:53 -0700
Message-ID: <4F63B455.7010408@jumis.com>
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 
>> Arrays
>> as currently specified - that is, that Uint16Array has platform 
>> endianness
> 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.

Received on Friday, 16 March 2012 14:44:53 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC