• Convert a given string to an ArrayBuffer.

    Parameters

    • str: string

      input string

    Returns ArrayBuffer

    Array buffer