My question is about the purpose / usage of writer Flush();
Not sure when to use and/or how it is used.
// Call method CharacterStringWriter("\r\n! Testing CharacterStringWriter:\r\n");
private static void CharacterStringWriter(string s)
{
DataWriter _writer = new DataWriter(uart1.OutputStream);
//char[] arr = s.ToCharArray();
//int length = s.Length;
byte[] array = Encoding.UTF8.GetBytes(s);
//uint howmany = _writer.UnstoredBufferLength; //Get
_writer.WriteBytes(array); // byte[36]
// Does not clear the array or write to the terminal
//_writer.Flush();
_writer.Store(); // This will display the entire array
// Writes to Tera Term VT
// ! Testing CharacterStringWriter:
// Tera Term cursor is shown on the line following the array string
}
//
Mostly qurious about it’s usage.
Thanks in advance.