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

定義

重要

此 API 不符合 CLS 規範。

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

public:
 static void WriteUInt64BigEndian(Span<System::Byte> destination, System::UInt64 value);
[System.CLSCompliant(false)]
public static void WriteUInt64BigEndian(Span<byte> destination, ulong value);
[<System.CLSCompliant(false)>]
static member WriteUInt64BigEndian : Span<byte> * uint64 -> unit
Public Shared Sub WriteUInt64BigEndian (destination As Span(Of Byte), value As ULong)

參數

destination
Span<Byte>

值要寫入的位元組範圍,也就是大端序。

value
UInt64

要寫入位元組區間的值。

屬性

例外狀況

destination太小,無法包含一個。UInt64

備註

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

適用於