[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] TypedArrays request.responseArrayBuffer, servers and endianness

Thanks, Joshua.

On 09/29/2010 12:03 PM, Joshua Bell wrote:
On Wed, Sep 29, 2010 at 10:53 AM, alan@mechnicality.com <alan@mechnicality.com> wrote:
3. Does anyone know a way of reliably determining from within a _javascript_ client the native byte order?

var BIG_ENDIAN = new Uint16Array(new Uint8Array([0x12, 0x34]).buffer)[0] === 0x1234;