BinaryPrimitives.ReverseEndianness 方法

定义

重载

ReverseEndianness(ReadOnlySpan<Int16>, Span<Int16>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<Int32>, Span<Int32>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<Int64>, Span<Int64>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<IntPtr>, Span<IntPtr>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<UInt64>, Span<UInt64>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<UInt16>, Span<UInt16>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<UInt32>, Span<UInt32>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<Int128>, Span<Int128>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<UIntPtr>, Span<UIntPtr>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(ReadOnlySpan<UInt128>, Span<UInt128>)

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

ReverseEndianness(UIntPtr)

对指定 UIntPtr 值执行字节序交换,以反转基元值。

ReverseEndianness(Int64)

对指定 Int64 值执行字节序交换,以反转基元值。

ReverseEndianness(UInt32)

对指定 UInt32 值执行字节序交换,以反转基元值。

ReverseEndianness(UInt16)

对指定 UInt16 值执行字节序交换,以反转基元值。

ReverseEndianness(UInt128)

对指定 UInt128 值执行字节序交换,以反转基元值。

ReverseEndianness(SByte)

对指定 SByte 值执行字节序交换,以反转基元值,这不会影响 SByte

ReverseEndianness(IntPtr)

对指定 IntPtr 值执行字节序交换,以反转基元值。

ReverseEndianness(UInt64)

对指定 UInt64 值执行字节序交换,以反转基元值。

ReverseEndianness(Int32)

对指定 Int32 值执行字节序交换,以反转基元值。

ReverseEndianness(Int16)

对指定 Int16 值执行字节序交换,以反转基元值。

ReverseEndianness(Int128)

对指定 Int128 值执行字节序交换,以反转基元值。

ReverseEndianness(Byte)

对指定 Byte 值执行字节序交换,以反转基元值,这不会影响 Byte

ReverseEndianness(ReadOnlySpan<Int16>, Span<Int16>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<short> source, Span<short> destination);
public static void ReverseEndianness (ReadOnlySpan<short> source, Span<short> destination);
static member ReverseEndianness : ReadOnlySpan<int16> * Span<int16> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of Short), destination As Span(Of Short))

参数

source
ReadOnlySpan<Int16>

要复制的源范围。

destination
Span<Int16>

源元素应复制到的目标。

适用于

ReverseEndianness(ReadOnlySpan<Int32>, Span<Int32>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<int> source, Span<int> destination);
public static void ReverseEndianness (ReadOnlySpan<int> source, Span<int> destination);
static member ReverseEndianness : ReadOnlySpan<int> * Span<int> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of Integer), destination As Span(Of Integer))

参数

source
ReadOnlySpan<Int32>

要复制的源范围。

destination
Span<Int32>

源元素应复制到的目标。

适用于

ReverseEndianness(ReadOnlySpan<Int64>, Span<Int64>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<long> source, Span<long> destination);
public static void ReverseEndianness (ReadOnlySpan<long> source, Span<long> destination);
static member ReverseEndianness : ReadOnlySpan<int64> * Span<int64> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of Long), destination As Span(Of Long))

参数

source
ReadOnlySpan<Int64>

要复制的源范围。

destination
Span<Int64>

源元素应复制到的目标。

适用于

ReverseEndianness(ReadOnlySpan<IntPtr>, Span<IntPtr>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<IntPtr> source, Span<IntPtr> destination);
public static void ReverseEndianness (ReadOnlySpan<IntPtr> source, Span<IntPtr> destination);
static member ReverseEndianness : ReadOnlySpan<nativeint> * Span<nativeint> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of IntPtr), destination As Span(Of IntPtr))

参数

source

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

要复制的源范围。

destination

Span<IntPtr>

Span<nativeint>

源元素应复制到的目标。

适用于

ReverseEndianness(ReadOnlySpan<UInt64>, Span<UInt64>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<System::UInt64> source, Span<System::UInt64> destination);
[System.CLSCompliant(false)]
public static void ReverseEndianness (ReadOnlySpan<ulong> source, Span<ulong> destination);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : ReadOnlySpan<uint64> * Span<uint64> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of ULong), destination As Span(Of ULong))

参数

source
ReadOnlySpan<UInt64>

要复制的源范围。

destination
Span<UInt64>

源元素应复制到的目标。

属性

适用于

ReverseEndianness(ReadOnlySpan<UInt16>, Span<UInt16>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<System::UInt16> source, Span<System::UInt16> destination);
[System.CLSCompliant(false)]
public static void ReverseEndianness (ReadOnlySpan<ushort> source, Span<ushort> destination);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : ReadOnlySpan<uint16> * Span<uint16> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of UShort), destination As Span(Of UShort))

参数

source
ReadOnlySpan<UInt16>

要复制的源范围。

destination
Span<UInt16>

源元素应复制到的目标。

属性

例外

destination的长度小于 的source长度。

注解

源范围和目标范围可能会重叠。 相同的跨度可以作为源和目标传递,以便就地反转每个元素的结束度。

适用于

ReverseEndianness(ReadOnlySpan<UInt32>, Span<UInt32>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<System::UInt32> source, Span<System::UInt32> destination);
[System.CLSCompliant(false)]
public static void ReverseEndianness (ReadOnlySpan<uint> source, Span<uint> destination);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : ReadOnlySpan<uint32> * Span<uint32> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of UInteger), destination As Span(Of UInteger))

参数

source
ReadOnlySpan<UInt32>

要复制的源范围。

destination
Span<UInt32>

源元素应复制到的目标。

属性

适用于

ReverseEndianness(ReadOnlySpan<Int128>, Span<Int128>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<Int128> source, Span<Int128> destination);
public static void ReverseEndianness (ReadOnlySpan<Int128> source, Span<Int128> destination);
static member ReverseEndianness : ReadOnlySpan<Int128> * Span<Int128> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of Int128), destination As Span(Of Int128))

参数

source
ReadOnlySpan<Int128>

要复制的源范围。

destination
Span<Int128>

源元素应复制到的目标。

适用于

ReverseEndianness(ReadOnlySpan<UIntPtr>, Span<UIntPtr>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<UIntPtr> source, Span<UIntPtr> destination);
[System.CLSCompliant(false)]
public static void ReverseEndianness (ReadOnlySpan<UIntPtr> source, Span<UIntPtr> destination);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : ReadOnlySpan<unativeint> * Span<unativeint> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of UIntPtr), destination As Span(Of UIntPtr))

参数

source

ReadOnlySpan<UIntPtr>

ReadOnlySpan<unativeint>

要复制的源范围。

destination

Span<UIntPtr>

Span<unativeint>

源元素应复制到的目标。

属性

适用于

ReverseEndianness(ReadOnlySpan<UInt128>, Span<UInt128>)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

将每个基元值从 source 复制到 destination,通过在写入每个基元时执行结束性交换来反转每个基元。

public:
 static void ReverseEndianness(ReadOnlySpan<UInt128> source, Span<UInt128> destination);
[System.CLSCompliant(false)]
public static void ReverseEndianness (ReadOnlySpan<UInt128> source, Span<UInt128> destination);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : ReadOnlySpan<UInt128> * Span<UInt128> -> unit
Public Shared Sub ReverseEndianness (source As ReadOnlySpan(Of UInt128), destination As Span(Of UInt128))

参数

source
ReadOnlySpan<UInt128>

要复制的源范围。

destination
Span<UInt128>

源元素应复制到的目标。

属性

适用于

ReverseEndianness(UIntPtr)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

对指定 UIntPtr 值执行字节序交换,以反转基元值。

public:
 static UIntPtr ReverseEndianness(UIntPtr value);
[System.CLSCompliant(false)]
public static UIntPtr ReverseEndianness (UIntPtr value);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : unativeint -> unativeint
Public Shared Function ReverseEndianness (value As UIntPtr) As UIntPtr

参数

value
UIntPtr

unativeint

要反转的值。

返回

UIntPtr

unativeint

已反转的值。

属性

适用于

ReverseEndianness(Int64)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

对指定 Int64 值执行字节序交换,以反转基元值。

public:
 static long ReverseEndianness(long value);
public static long ReverseEndianness (long value);
static member ReverseEndianness : int64 -> int64
Public Shared Function ReverseEndianness (value As Long) As Long

参数

value
Int64

要反转的值。

返回

已反转的值。

适用于

ReverseEndianness(UInt32)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

对指定 UInt32 值执行字节序交换,以反转基元值。

public:
 static System::UInt32 ReverseEndianness(System::UInt32 value);
[System.CLSCompliant(false)]
public static uint ReverseEndianness (uint value);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : uint32 -> uint32
Public Shared Function ReverseEndianness (value As UInteger) As UInteger

参数

value
UInt32

要反转的值。

返回

已反转的值。

属性

适用于

ReverseEndianness(UInt16)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

对指定 UInt16 值执行字节序交换,以反转基元值。

public:
 static System::UInt16 ReverseEndianness(System::UInt16 value);
[System.CLSCompliant(false)]
public static ushort ReverseEndianness (ushort value);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : uint16 -> uint16
Public Shared Function ReverseEndianness (value As UShort) As UShort

参数

value
UInt16

要反转的值。

返回

已反转的值。

属性

适用于

ReverseEndianness(UInt128)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

对指定 UInt128 值执行字节序交换,以反转基元值。

public:
 static UInt128 ReverseEndianness(UInt128 value);
[System.CLSCompliant(false)]
public static UInt128 ReverseEndianness (UInt128 value);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : UInt128 -> UInt128
Public Shared Function ReverseEndianness (value As UInt128) As UInt128

参数

value
UInt128

要反转的值。

返回

已反转的值。

属性

适用于

ReverseEndianness(SByte)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

对指定 SByte 值执行字节序交换,以反转基元值,这不会影响 SByte

public:
 static System::SByte ReverseEndianness(System::SByte value);
[System.CLSCompliant(false)]
public static sbyte ReverseEndianness (sbyte value);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : sbyte -> sbyte
Public Shared Function ReverseEndianness (value As SByte) As SByte

参数

value
SByte

要反转的值。

返回

未修改的传入值。

属性

注解

此方法实际上不执行任何工作,只是为了保持一致性而添加。

适用于

ReverseEndianness(IntPtr)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

对指定 IntPtr 值执行字节序交换,以反转基元值。

public:
 static IntPtr ReverseEndianness(IntPtr value);
public static IntPtr ReverseEndianness (IntPtr value);
static member ReverseEndianness : nativeint -> nativeint
Public Shared Function ReverseEndianness (value As IntPtr) As IntPtr

参数

value
IntPtr

nativeint

要反转的值。

返回

IntPtr

nativeint

已反转的值。

适用于

ReverseEndianness(UInt64)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

重要

此 API 不符合 CLS。

对指定 UInt64 值执行字节序交换,以反转基元值。

public:
 static System::UInt64 ReverseEndianness(System::UInt64 value);
[System.CLSCompliant(false)]
public static ulong ReverseEndianness (ulong value);
[<System.CLSCompliant(false)>]
static member ReverseEndianness : uint64 -> uint64
Public Shared Function ReverseEndianness (value As ULong) As ULong

参数

value
UInt64

要反转的值。

返回

已反转的值。

属性

适用于

ReverseEndianness(Int32)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

对指定 Int32 值执行字节序交换,以反转基元值。

public:
 static int ReverseEndianness(int value);
public static int ReverseEndianness (int value);
static member ReverseEndianness : int -> int
Public Shared Function ReverseEndianness (value As Integer) As Integer

参数

value
Int32

要反转的值。

返回

已反转的值。

适用于

ReverseEndianness(Int16)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

对指定 Int16 值执行字节序交换,以反转基元值。

public:
 static short ReverseEndianness(short value);
public static short ReverseEndianness (short value);
static member ReverseEndianness : int16 -> int16
Public Shared Function ReverseEndianness (value As Short) As Short

参数

value
Int16

要反转的值。

返回

已反转的值。

适用于

ReverseEndianness(Int128)

Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

对指定 Int128 值执行字节序交换,以反转基元值。

public:
 static Int128 ReverseEndianness(Int128 value);
public static Int128 ReverseEndianness (Int128 value);
static member ReverseEndianness : Int128 -> Int128
Public Shared Function ReverseEndianness (value As Int128) As Int128

参数

value
Int128

要反转的值。

返回

已反转的值。

适用于

ReverseEndianness(Byte)

Source:
Reader.cs
Source:
BinaryPrimitives.ReverseEndianness.cs
Source:
BinaryPrimitives.ReverseEndianness.cs

对指定 Byte 值执行字节序交换,以反转基元值,这不会影响 Byte

public:
 static System::Byte ReverseEndianness(System::Byte value);
public static byte ReverseEndianness (byte value);
static member ReverseEndianness : byte -> byte
Public Shared Function ReverseEndianness (value As Byte) As Byte

参数

value
Byte

要反转的值。

返回

未修改的传入值。

注解

此方法实际上不执行任何工作,只是为了保持一致性而添加。

适用于