BinaryPrimitives.ReadUIntPtrBigEndian(ReadOnlySpan<Byte>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
此 API 不符合 CLS 規範。
從一個只讀的位元組區段開始讀取 a UIntPtr ,作為大端序。
public:
static UIntPtr ReadUIntPtrBigEndian(ReadOnlySpan<System::Byte> source);
[System.CLSCompliant(false)]
public static UIntPtr ReadUIntPtrBigEndian(ReadOnlySpan<byte> source);
[<System.CLSCompliant(false)>]
static member ReadUIntPtrBigEndian : ReadOnlySpan<byte> -> unativeint
Public Shared Function ReadUIntPtrBigEndian (source As ReadOnlySpan(Of Byte)) As UIntPtr
參數
- source
- ReadOnlySpan<Byte>
唯讀範圍用來讀取。
傳回
UIntPtr
unativeint
大端值。
- 屬性
例外狀況
source太小,無法包含一個。UIntPtr
備註
在 32 位元平台上,從區間起始處正好讀取 4 位元組,或在 64 位元平台上讀取 8 位元組。