In C# I am using BinaryWriter like this:
BinaryWriter br = new BinaryWriter(myPipe);
var bytes = new byte[5];
br.Write(bytes);
br.Flush();
https://msdn.microsoft.com/de-de/library/system.io.binarywriter.flush(v=vs.110).aspx mentions you should use flush your binary writer.
However I noticed that the data already gets send as soon as br.Write is called and I see no need to call br.Flush?
I am wondering if I can remove that 1 (unnecessary) line of code: br.Flush()
or if there is more to it?