BinaryPrimitives.TryWriteUInt64LittleEndian(Span<Byte>, UInt64) 方法

定義

重要

此 API 不符合 CLS 規範。

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

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

參數

destination
Span<Byte>

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

value
UInt64

要寫入位元組區間的值。

傳回

true 若跨度足夠大以容納 ; UInt64否則,則 false

屬性

備註

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

適用於