title: How to write hex values in byte array?
body: <p>I have a hex value of 0x1047F71 and I want to put in byte array of 4 bytes. Is this the right way to do it:</p>
  
  <pre><code>byte[] sync_welcome_sent = new byte[4] { 0x10, 0x47, 0xF7, 0x01 };
  </code></pre>
  
  <p>or </p>
  
  <pre><code>byte[] sync_welcome_sent = new byte[4] { 0x01, 0x04, 0x7F, 0x71 };
  </code></pre>
  
  <p>I would appreciate any help.</p>