Function stringToInt

  • Converts a string to an integer using the specified encoding.

    Parameters

    • str: string

      The string to be converted to an integer.

    • Optional encoding: Encoding

      The encoding to be used for the conversion.

    Returns number

    The integer representation of the input string.

Generated using TypeDoc