Encode a positive integer as a little-endian Uint8Array. For values exceeding Number.MAX_SAFE_INTEGER (9007199254740991), use bigIntToBinUintLE.
Number.MAX_SAFE_INTEGER
9007199254740991
Negative values will return the same result as 0.
0
For the reverse, see binToNumberUintLE.
the number to encode
Generated using TypeDoc
Encode a positive integer as a little-endian Uint8Array. For values exceeding
Number.MAX_SAFE_INTEGER
(9007199254740991
), use bigIntToBinUintLE.Negative values will return the same result as
0
.For the reverse, see binToNumberUintLE.