Function toBigIntBE

  • Convert a big-endian buffer into a BigInt.

    Parameters

    • buf: Buffer

      The big-endian buffer to convert.

    Returns bigint

    A BigInt with the big-endian representation of buf.