title: memcpy to copy integer to BYTE array
body: <p>I'm trying to send some data command in BYTE format to a serial port. Say I need to send ucXmtdat[60] buffer with message type set at offset 0, time value set at offset 1 to 4 and message number set at offset 5 to 9. To implement this actual in code can I go by below approach?</p>
  
  <pre><code>BYTE ucXmtdat[60];
  ucXmtdat[0] = 0x0A;
  
  int timeValue = 290920932;
  memcpy(ucXmtdat+1, &amp;timeValue, sizeof(int));
  
  int seqNumber = 1;
  memcpy(ucXmtdat+5, &amp;seqNumber, sizeof(int));
  </code></pre>