Function uleb128DecodeWithIndex

  • Decodes an unsigned leb128 encoded value to bigint and returns it along with the index of the end of the encoded uleb128 number + 1.

    Returns

    the decoded bigint value and the index of the end of the encoded uleb128 number + 1.

    Parameters

    • bytes: Uint8Array

      The buffer to decode

    • index: number = 0

      A non-negative index to decode at, defaults to 0

    Returns [bigint, number]

Generated using TypeDoc