Function ensurePositiveIntegerOfSize

  • Throws an error if the given number takes more bits than expected.

    Parameters

    • num: number
    • size: number

      expected size in bits

    Returns void