IBinaryInteger<TSelf>.ReadBigEndian 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
指示它表示有符号二的补码。
返回
从 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
指示它表示有符号二的补码。
返回
从 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
指示它表示有符号二的补码。
返回
从 source
开始 startIndex
读取的值。
例外
source
不能由 TSelf