BinaryPrimitives.WriteInt64BigEndian(Span<Byte>, Int64) 方法

定義

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

public:
 static void WriteInt64BigEndian(Span<System::Byte> destination, long value);
public static void WriteInt64BigEndian(Span<byte> destination, long value);
static member WriteInt64BigEndian : Span<byte> * int64 -> unit
Public Shared Sub WriteInt64BigEndian (destination As Span(Of Byte), value As Long)

參數

destination
Span<Byte>

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

value
Int64

要寫入位元組區間的值。

例外狀況

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

備註

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

適用於