title: Is there a built in function to expand a byte[] leaving zeros at the beginning?
body: <p>I've got this code</p>
  
  <pre><code>BitConverter.GetBytes(width).CopyTo(resultBytes, 0);
  </code></pre>
  
  <p>If the width is 12 it returns one byte not 4, is there a built in function to resize the array leaving 0's at the beginning
  to output [0, 0, 0, 12] instead of [12].</p>