BinaryPrimitives.TryWriteUInt128LittleEndian 方法

定義

重要

此 API 不符合 CLS 規範。

將 a UInt128 寫入一個位元組區間,作為小端序。

public:
 static bool TryWriteUInt128LittleEndian(Span<System::Byte> destination, UInt128 value);
[System.CLSCompliant(false)]
public static bool TryWriteUInt128LittleEndian(Span<byte> destination, UInt128 value);
[<System.CLSCompliant(false)>]
static member TryWriteUInt128LittleEndian : Span<byte> * UInt128 -> bool
Public Shared Function TryWriteUInt128LittleEndian (destination As Span(Of Byte), value As UInt128) As Boolean

參數

destination
Span<Byte>

值要寫入的位元組範圍,以小端序(little endian)表示。

value
UInt128

要寫入位元組區間的值。

傳回

false若跨度太小無法容納該值;否則,。 true

屬性

備註

在區間的起始處寫入正好 16 位元組。

適用於