BinaryPrimitives.ReadUInt32BigEndian(ReadOnlySpan<Byte>) 方法

定义

重要

此 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 个字节。

适用于