summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAhson Khan <ahkha@microsoft.com>2018-03-21 18:03:02 -0700
committerJan Kotas <jkotas@microsoft.com>2018-03-21 18:03:02 -0700
commitc00c62f0f332731a186d44b5eb9f9b783b1e6e8b (patch)
treef99ae39bef81d0e89ff58581b0f9c4edc1ca449f /src
parentd104270f8412381b5eb7715a775c3999f28b740c (diff)
downloadcoreclr-c00c62f0f332731a186d44b5eb9f9b783b1e6e8b.tar.gz
coreclr-c00c62f0f332731a186d44b5eb9f9b783b1e6e8b.tar.bz2
coreclr-c00c62f0f332731a186d44b5eb9f9b783b1e6e8b.zip
Rename {Try}Read/WriteMachineEndian to just {Try}Read/Write (#17106)
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs b/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs
index 2c277e671e..b4b17b0370 100644
--- a/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs
+++ b/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs
@@ -131,7 +131,7 @@ namespace System.Runtime.InteropServices
/// Reads a structure of type T out of a read-only span of bytes.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static T ReadMachineEndian<T>(ReadOnlySpan<byte> source)
+ public static T Read<T>(ReadOnlySpan<byte> source)
where T : struct
{
#if netstandard
@@ -157,7 +157,7 @@ namespace System.Runtime.InteropServices
/// <returns>If the span is too small to contain the type T, return false.</returns>
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static bool TryReadMachineEndian<T>(ReadOnlySpan<byte> source, out T value)
+ public static bool TryRead<T>(ReadOnlySpan<byte> source, out T value)
where T : struct
{
#if netstandard
@@ -184,7 +184,7 @@ namespace System.Runtime.InteropServices
/// Writes a structure of type T into a span of bytes.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static void WriteMachineEndian<T>(Span<byte> destination, ref T value)
+ public static void Write<T>(Span<byte> destination, ref T value)
where T : struct
{
#if netstandard
@@ -210,7 +210,7 @@ namespace System.Runtime.InteropServices
/// <returns>If the span is too small to contain the type T, return false.</returns>
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static bool TryWriteMachineEndian<T>(Span<byte> destination, ref T value)
+ public static bool TryWrite<T>(Span<byte> destination, ref T value)
where T : struct
{
#if netstandard