IBinaryInteger<TSelf>.ReadLittleEndian 方法

定义

重载

ReadLittleEndian(Byte[], Boolean)

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

ReadLittleEndian(ReadOnlySpan<Byte>, Boolean)

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

ReadLittleEndian(Byte[], Int32, Boolean)

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

ReadLittleEndian(Byte[], Boolean)

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

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

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

参数

source
Byte[]

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

isUnsigned
Boolean

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

返回

TSelf

source读取的值。

例外

source 不能由 TSelf

适用于

ReadLittleEndian(ReadOnlySpan<Byte>, Boolean)

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

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

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

参数

source
ReadOnlySpan<Byte>

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

isUnsigned
Boolean

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

返回

TSelf

source读取的值。

例外

source 不能由 TSelf

适用于

ReadLittleEndian(Byte[], Int32, Boolean)

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

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

public:
 static override TSelf ReadLittleEndian(cli::array <System::Byte> ^ source, int startIndex, bool isUnsigned);
public static virtual TSelf ReadLittleEndian (byte[] source, int startIndex, bool isUnsigned);
static member ReadLittleEndian : byte[] * int * bool -> 'Self
Public Shared Overrides Function ReadLittleEndian (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

适用于