Imported Upstream version 5.14.0.93

Former-commit-id: dda284b8de49fb65cd1a403db6a592e6c68a5e8c
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-05-23 09:42:45 +00:00
parent fb453ffa72
commit 300ff421ef
63 changed files with 880 additions and 65 deletions

View File

@ -6,6 +6,8 @@ using System.Text;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Mono;
namespace System.IO {
class LogcatTextWriter : TextWriter {
@ -74,8 +76,8 @@ namespace System.IO {
}
}
fixed (byte *b_message = Encoding.UTF8.GetBytes(message + '\0')) {
Log (b_message);
using (SafeStringMarshal str = new SafeStringMarshal(message)) {
Log ((byte*) str.Value);
}
}
}