语言

IBinaryInteger<TSelf>.ReadBigEndian 方法

定义

重载

名称 说明
ReadBigEndian(Byte[], Boolean)

从给定数组中读取一个二进制数(采用大端格式)并将其转换为当前类型的实例。

ReadBigEndian(ReadOnlySpan<Byte>, Boolean)

从给定范围读取两个的补数(采用大端格式)并将其转换为当前类型的实例。

ReadBigEndian(Byte[], Int32, Boolean)

从给定数组中读取一个二进制数(采用大端格式)并将其转换为当前类型的实例。

ReadBigEndian(Byte[], Boolean)

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

从给定数组中读取一个二进制数(采用大端格式)并将其转换为当前类型的实例。

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
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

从给定范围读取两个的补数(采用大端格式)并将其转换为当前类型的实例。

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
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

从给定数组中读取一个二进制数(采用大端格式)并将其转换为当前类型的实例。

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

适用于