File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed
src/libraries/System.Private.CoreLib/src/Internal Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System ;
5
+ using System . Runtime . CompilerServices ;
5
6
using System . Runtime . InteropServices ;
6
7
7
8
namespace Internal
8
9
{
9
10
public static partial class Console
10
11
{
12
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
11
13
public static unsafe void Write ( string s )
12
14
{
13
15
Interop . Logcat . AndroidLogPrint ( Interop . Logcat . LogLevel . Debug , "DOTNET" , s ?? string . Empty ) ;
14
16
}
15
17
16
18
public static partial class Error
17
19
{
20
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
18
21
public static unsafe void Write ( string s )
19
22
{
20
23
Interop . Logcat . AndroidLogPrint ( Interop . Logcat . LogLevel . Error , "DOTNET" , s ?? string . Empty ) ;
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System ;
5
+ using System . Runtime . CompilerServices ;
5
6
using System . Text ;
6
7
7
8
namespace Internal
8
9
{
9
10
public static partial class Console
10
11
{
12
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
11
13
public static unsafe void Write ( string s )
12
14
{
13
15
byte [ ] bytes = Encoding . UTF8 . GetBytes ( s ) ;
@@ -19,6 +21,7 @@ public static unsafe void Write(string s)
19
21
20
22
public static partial class Error
21
23
{
24
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
22
25
public static unsafe void Write ( string s )
23
26
{
24
27
byte [ ] bytes = Encoding . UTF8 . GetBytes ( s ) ;
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System ;
5
+ using System . Runtime . CompilerServices ;
5
6
using System . Text ;
6
7
7
8
namespace Internal
8
9
{
9
10
public static partial class Console
10
11
{
12
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
11
13
public static void Write ( string s )
12
14
{
13
15
WriteCore ( Interop . Kernel32 . GetStdHandle ( Interop . Kernel32 . HandleTypes . STD_OUTPUT_HANDLE ) , s ) ;
14
16
}
15
17
16
18
public static partial class Error
17
19
{
20
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
18
21
public static void Write ( string s )
19
22
{
20
23
WriteCore ( Interop . Kernel32 . GetStdHandle ( Interop . Kernel32 . HandleTypes . STD_ERROR_HANDLE ) , s ) ;
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System ;
5
+ using System . Runtime . CompilerServices ;
5
6
6
7
namespace Internal
7
8
{
@@ -12,14 +13,17 @@ namespace Internal
12
13
13
14
public static partial class Console
14
15
{
16
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
15
17
public static void WriteLine ( string ? s ) =>
16
18
Write ( s + Environment . NewLineConst ) ;
17
19
20
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
18
21
public static void WriteLine ( ) =>
19
22
Write ( Environment . NewLineConst ) ;
20
23
21
24
public static partial class Error
22
25
{
26
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
23
27
public static void WriteLine ( ) =>
24
28
Write ( Environment . NewLineConst ) ;
25
29
}
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System ;
5
+ using System . Runtime . CompilerServices ;
5
6
using System . Text ;
6
7
7
8
namespace Internal
8
9
{
9
10
public static partial class Console
10
11
{
12
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
11
13
public static unsafe void Write ( string s )
12
14
{
13
15
fixed ( char * ptr = s )
@@ -17,6 +19,7 @@ public static unsafe void Write(string s)
17
19
}
18
20
public static partial class Error
19
21
{
22
+ [ MethodImplAttribute ( MethodImplOptions . NoInlining ) ]
20
23
public static unsafe void Write ( string s )
21
24
{
22
25
fixed ( char * ptr = s )
You can’t perform that action at this time.
0 commit comments