Function asciiToBytes

  • Converts an ASCII string to the equivalent bytes

    Example

    asciiToBytes('stacks $'); // Uint8Array(8) [ 115, 116, 97, 99, 107, 115, 32, 36 ]
    

    Parameters

    • str: string

    Returns Uint8Array

Generated using TypeDoc