title: C++ memcpy not copying as expected
body: <pre><code>    BYTE* uMemory;
      std::string data = &quot;00 00 00 2D 01 00 B0 F9 1E 00&quot;
      data.erase(remove_if(data.begin(), data.end(), isspace), data.end());
  
      int address = 0;
      for (int i = 0; i &lt; data.length(); i += 2)
      {
          std::string data_1 = data.substr(i, 2);
          int num2 = std::stoi(data_1, 0, 16);
          memcpy(&amp;uMemory + address, &amp;num2, 2);
          address++;
      }
  </code></pre>
  <p>I'm trying to copy this into memory (2E 01 00 00 00 2D 01 00 B0 F9 1E 00) for uMemory but I don't understand the logic of it.</p>
  <p>No matter the amount of bytes I want it to copy it always ends up like this in memory:</p>
  <pre><code>00 00 00 00 00 00 00 00 00 01 00 00 2D 00 00 00 01 00 00 00 00 00 00 00 B0 00 00 00 F9 00 00 00 1E 00 00 00
  </code></pre>