Function bigIntToBinUint64LEClamped

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

    For an alternative overflow behavior, see bigIntToBinUint64LE.

    For the reverse, see binToBigIntUint64LE.

    Parameters

    • value: bigint

      the number to encode

    Returns Uint8Array

Generated using TypeDoc