BinaryPrimitives.ReadUIntPtrLittleEndian(ReadOnlySpan<Byte>) 方法

定義

重要

此 API 不符合 CLS 規範。

從一個只讀位元組區段的開頭讀取 a UIntPtr ,作為小端序。

public:
 static UIntPtr ReadUIntPtrLittleEndian(ReadOnlySpan<System::Byte> source);
[System.CLSCompliant(false)]
public static UIntPtr ReadUIntPtrLittleEndian(ReadOnlySpan<byte> source);
[<System.CLSCompliant(false)>]
static member ReadUIntPtrLittleEndian : ReadOnlySpan<byte> -> unativeint
Public Shared Function ReadUIntPtrLittleEndian (source As ReadOnlySpan(Of Byte)) As UIntPtr

參數

source
ReadOnlySpan<Byte>

唯讀範圍用來讀取。

傳回

UIntPtr

unativeint

那個小恩序值。

屬性

例外狀況

source太小,無法包含一個。UIntPtr

備註

從區間起始,在 32 位元平台上讀取 4 位元組,或在 64 位元平台讀取 8 位元組。

適用於