[corlib] Fix a few NSLogWriter issues. (#13799)
commit6492dd3a6f2cd6670a4ceb0717bd83a5597fd10a
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 9 Apr 2019 12:58:15 +0000 (9 14:58 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Tue, 9 Apr 2019 12:58:15 +0000 (9 14:58 +0200)
tree1bea55249df8fb5e2d5f77b39b2792ad3caec7d5
parent00b8b21e729c3c18838bc331c17124be076026d7
[corlib] Fix a few NSLogWriter issues. (#13799)

* [corlib] Make NSLogWriter thread-safe.

* [corlib] Simplify newline checking in NSLogWriter.

Checking the StringBuilder buffer after writing to it instead of the input
string/char[] makes the code somewhat simpler.

* [corlib] Fix NSLogWriter.Write to take into account the index and count parameters.
mcs/class/corlib/System/Console.iOS.cs