• Decodes a varint encoded Uint8Array to a number

    Parameters

    • data: Uint8Array

      The varint encoded Uint8Array

    Returns {
        bytes: number;
        value: number;
    }

    The decoded number and the number of bytes read

    • bytes: number
    • value: number

Generated using TypeDoc