node-bitarray
node-bitarray copied to clipboard
Inconsistent API: fill(), octet(), and fromHex() are little-endian. Everything else is big-endian.
-
fill()appends 0's to the end of the array, instead of prepending. -
octet()is just shorthand forfill(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].
toNumber() is little-endian as well.