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.
Number.MAX_SAFE_INTEGER
9007199254740991
bigIntToBinUintLE
0
the number to encode
Generated using TypeDoc
Encode a positive integer as a little-endian Uint8Array. For values exceeding
Number.MAX_SAFE_INTEGER
(9007199254740991
), usebigIntToBinUintLE
. Negative values will return the same result as0
.