Function asciiToBytes

  • Converts an ASCII string to the equivalent bytes

    Parameters

    • str: string

    Returns Uint8Array

    Example

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

Generated using TypeDoc