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