IBinaryInteger<TSelf>.ReadBigEndian 方法

定义

重载

ReadBigEndian(Byte[], Boolean)

以 big-endian 格式从给定数组中读取二进制的补数,并将其转换为当前类型的实例。

ReadBigEndian(ReadOnlySpan<Byte>, Boolean)

以 big-endian 格式从给定范围读取二进制的补数,并将其转换为当前类型的实例。

ReadBigEndian(Byte[], Int32, Boolean)

以 big-endian 格式从给定数组中读取二进制的补数,并将其转换为当前类型的实例。

ReadBigEndian(Byte[], Boolean)

Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

以 big-endian 格式从给定数组中读取二进制的补数,并将其转换为当前类型的实例。

public:
 static override TSelf ReadBigEndian(cli::array <System::Byte> ^ source, bool isUnsigned);
public static virtual TSelf ReadBigEndian (byte[] source, bool isUnsigned);
static member ReadBigEndian : byte[] * bool -> 'Self
Public Shared Overrides Function ReadBigEndian (source As Byte(), isUnsigned As Boolean) As TSelf

参数

source
Byte[]

应从中读取两者补号的数组。

isUnsigned
Boolean

true 如果 source 表示无符号二的补码,则为 ;否则, false 指示它表示有符号二的补码。

返回

TSelf

source读取的值。

例外

source 不能由 TSelf

适用于

ReadBigEndian(ReadOnlySpan<Byte>, Boolean)

Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

以 big-endian 格式从给定范围读取二进制的补数,并将其转换为当前类型的实例。

public:
 static override TSelf ReadBigEndian(ReadOnlySpan<System::Byte> source, bool isUnsigned);
public static virtual TSelf ReadBigEndian (ReadOnlySpan<byte> source, bool isUnsigned);
static member ReadBigEndian : ReadOnlySpan<byte> * bool -> 'Self
Public Shared Overrides Function ReadBigEndian (source As ReadOnlySpan(Of Byte), isUnsigned As Boolean) As TSelf

参数

source
ReadOnlySpan<Byte>

应从中读取两者补号的数组。

isUnsigned
Boolean

true 如果 source 表示无符号二的补码,则为 ;否则, false 指示它表示有符号二的补码。

返回

TSelf

source读取的值。

例外

source 不能由 TSelf

适用于

ReadBigEndian(Byte[], Int32, Boolean)

Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

以 big-endian 格式从给定数组中读取二进制的补数,并将其转换为当前类型的实例。

public:
 static override TSelf ReadBigEndian(cli::array <System::Byte> ^ source, int startIndex, bool isUnsigned);
public static virtual TSelf ReadBigEndian (byte[] source, int startIndex, bool isUnsigned);
static member ReadBigEndian : byte[] * int * bool -> 'Self
Public Shared Overrides Function ReadBigEndian (source As Byte(), startIndex As Integer, isUnsigned As Boolean) As TSelf

参数

source
Byte[]

应从中读取两者补号的数组。

startIndex
Int32

应从中读取值的起始索引。

isUnsigned
Boolean

true 如果 source 表示无符号二的补码,则为 ;否则, false 指示它表示有符号二的补码。

返回

TSelf

source 开始 startIndex读取的值。

例外

source 不能由 TSelf

适用于