Function decode

  • Decode non-negative integer as number.

    Parameters

    • value: Uint8Array
    • Optionalopts: NNI.Options & { big?: false }

    Returns number

  • Decode non-negative integer as bigint.

    Parameters

    • value: Uint8Array
    • opts: NNI.Options & { big: true }

    Returns bigint