BinaryPrimitives.ReadUInt32BigEndian(ReadOnlySpan<Byte>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
从字节只读范围的开头,将 UInt32 读取为大字节序。
public:
static System::UInt32 ReadUInt32BigEndian(ReadOnlySpan<System::Byte> source);
[System.CLSCompliant(false)]
public static uint ReadUInt32BigEndian (ReadOnlySpan<byte> source);
[<System.CLSCompliant(false)>]
static member ReadUInt32BigEndian : ReadOnlySpan<byte> -> uint32
Public Shared Function ReadUInt32BigEndian (source As ReadOnlySpan(Of Byte)) As UInteger
参数
- source
- ReadOnlySpan<Byte>
要读取的只读跨度。
返回
大字节序值。
- 属性
例外
source 太小,无法包含 UInt32。
注解
从范围开头正好读取 4 个字节。