title: How do I add an integer of two bytes to an array?
body: <p>I need to translate an integer into 2 bytes (0 x...) How can I do this?
  <img src="https://i.stack.imgur.com/BnUxN.png" alt="Click to open"></p>
  
  <pre><code>int port = 7777;
  byte[] bufferPost = { 0xBC, 0x5F, ..., 0xbyte1OfIntValue, 0xbyte2OfIntValue }; 
  </code></pre>