title: c# serial port flushing for small data chunks
body: <p>I'm writing a small byte array of two bytes using something like the following:</p>
  
  <pre><code>int bytes_to_write = 2;
  port.Write(byte_buffer, buffer_offset, bytes_to_write);
  </code></pre>
  
  <p>It appears as though the underlying libraries are waiting for more data to come through before writing it to the port. Is this the correct behaviour and can I force it to write the small chunk immediately? Some of the forums say using:</p>
  
  <pre><code>port.BaseStream.Flush(); 
  </code></pre>
  
  <p>will cause the correct behaviour but others say this doesn't work. I've run a couple of tests and it doesn't seem to be working for me. </p>
  
  <p>Cheers, 
  Richard</p>