title: Write Int array to Stream in .NET
body: <p>what's the best way to write the binary representation of an int array (<code>Int32[]</code>) to a <code>Stream</code>? </p>
  
  <p><code>Stream.Write</code> only accepts <code>byte[]</code> as source and I would like to avoid converting/copying the array to an <code>byte[]</code> (array but instead streaming directly from the 'original location').</p>
  
  <p>In a more system-oriented language (a.k.a. C++) I would simply cast the int array to a <code>byte*</code> but as far as I understood this isn't possible with C# (and moreover, casting <code>byte*</code> to <code>byte[]</code> wouldn't work out either way)</p>
  
  <p>Thanks</p>
  
  <p>Martin</p>
  
  <p>PS: Actually, I would also like to stream single <code>int</code> values. Does using <code>BinaryConverter.GetBytes()</code> create a new byte array? In this case I extend my question to how to efficiently stream single <code>int</code> values ...</p>