Encode a positive BigInt as an 8-byte Uint64LE Uint8Array, clamping the results – values exceeding 0xffff_ffff_ffff_ffff (18446744073709551615) return the same result as 0xffff_ffff_ffff_ffff, negative values return the same result as 0.
0xffff_ffff_ffff_ffff
18446744073709551615
0
For an alternative overflow behavior, see bigIntToBinUint64LE.
For the reverse, see binToBigIntUint64LE.
the number to encode
Generated using TypeDoc
Encode a positive BigInt as an 8-byte Uint64LE Uint8Array, clamping the results – values exceeding
0xffff_ffff_ffff_ffff
(18446744073709551615
) return the same result as0xffff_ffff_ffff_ffff
, negative values return the same result as0
.For an alternative overflow behavior, see bigIntToBinUint64LE.
For the reverse, see binToBigIntUint64LE.