Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/libraries/System.Private.CoreLib/src/Internal/Console.iOS.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Text;

namespace Internal
{
public static partial class Console
{
public static unsafe void Write(string s)
{
fixed (char* ptr = s)
{
Interop.Sys.Log((byte*)ptr, s.Length * 2);
}
}
public static partial class Error
{
public static unsafe void Write(string s)
{
fixed (char* ptr = s)
{
Interop.Sys.LogError((byte*)ptr, s.Length * 2);
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2235,8 +2235,9 @@
<Compile Include="$(CommonPath)System\IO\PathInternal.Unix.cs">
<Link>Common\System\IO\PathInternal.Unix.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Unix.cs" Condition="'$(TargetsAndroid)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Unix.cs" Condition="'$(TargetsAndroid)' != 'true' and '$(IsiOSLike)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.iOS.cs" Condition="'$(IsiOSLike)' == 'true'" />
<Compile Include="$(CommonPath)Interop\Android\Interop.Logcat.cs" Condition="'$(TargetsAndroid)' == 'true' or '$(TargetsLinuxBionic)' == 'true'">
<Link>Common\Interop\Android\Interop.Logcat.cs</Link>
</Compile>
Expand Down