BinaryPrimitives.TryReadUInt128BigEndian 方法

定義

重要

此 API 不符合 CLS 規範。

從一個只讀的位元組區段開始讀取 a UInt128 ,作為大端序。

public:
 static bool TryReadUInt128BigEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] UInt128 % value);
[System.CLSCompliant(false)]
public static bool TryReadUInt128BigEndian(ReadOnlySpan<byte> source, out UInt128 value);
[<System.CLSCompliant(false)>]
static member TryReadUInt128BigEndian : ReadOnlySpan<byte> * UInt128 -> bool
Public Shared Function TryReadUInt128BigEndian (source As ReadOnlySpan(Of Byte), ByRef value As UInt128) As Boolean

參數

source
ReadOnlySpan<Byte>

唯讀的位元組範圍。

value
UInt128

當此方法回傳時,包含從唯讀位元組區間讀取出來的值,作為大端序。

傳回

false若張成太小無法包含 UInt128;否則,。 true

屬性

備註

從區間起始正好讀取 16 位元組。

適用於