How can I convert a string to a byte array?
<p>How can I convert a string to a byte array in C++?</p>

<p>For example, <code>"Hello"</code> → <code>48 65 6c 6c 6f</code>.</p>

<p>I'm trying to pattern search the memory with this byte array after.</p>