Skip to content

Inconsistent API: fill(), octet(), and fromHex() are little-endian. Everything else is big-endian. #1

@jamesrom

Description

@jamesrom
  • fill() appends 0's to the end of the array, instead of prepending.
  • octet() is just shorthand for fill(8) so it suffers the same issue.
  • fromHex('F0') returns [0, 0, 0, 0, 1, 1, 1, 1], instead of [1, 1, 1, 1, 0, 0, 0, 0].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions