title: How to convert string to uint8_t in C++?
body: <p>How to convert string to uint8_t in C++?</p>
  
  <pre><code>std::string str = "b2d";
  static const uint8_t PublicKeyData[3] = ??? // it should be like 0x62 0x32 0x64}
  </code></pre>