Forces a write all buffered data for the FIFO and waits for completion.
procedure Flush();
void Flush();
None.
The method may throw exception. Refer to Handle errors sample for details.