Skip to content

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

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].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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