Skip to content

Ensure endianness #22

Open
Open
@emilbayes

Description

@emilbayes

TypedArrays use native endianness but a lot of algorithms here assume a specific endianness. We need to find a efficient way to switch between them. Checking endianness is as simple as:

var write = new Uint16Array([0xffdd])
var check = new Uint8Array(write.buffer)[0] === 0xff ? 'big' : 'little'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions