Function encodeUint64

  • encodeUint64 converts an integer to its binary representation.

    Parameters

    • num: number | bigint

      The number to convert. This must be an unsigned integer less than 2^64.

    Returns Uint8Array

    An 8-byte typed array containing the big-endian encoding of the input integer.

Generated using TypeDoc