title: Is there a less painful way to GetBytes for a buffer not starting at 0?
body: <p>I am having to deal with raw bytes in a project and I need to basically do something like this</p>
  
  <pre><code>byte[] ToBytes(){
    byte[] buffer=new byte[somelength];
    byte[] tmp;
    tmp=BitConverter.GetBytes(SomeShort);
    buffer[0]=tmp[0];
    buffer[1]=tmp[1];
    tmp=BitConverter.GetBytes(SomeOtherShort);
    buffer[2]=tmp[0];
    buffer[3]=tmp[1];
  }
  </code></pre>
  
  <p>I feel like this is so wrong yet I can't find any better way of doing it. Is there an easier way? </p>