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