BinaryPrimitives.WriteInt64BigEndian(Span<Byte>, Int64) Method

Definition

Writes an Int64 into a span of bytes, as big endian.

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)

Parameters

destination
Span<Byte>

The span of bytes where the value is to be written, as big endian.

value
Int64

The value to write into the span of bytes.

Exceptions

destination is too small to contain an Int64.

Remarks

Writes exactly 8 bytes to the beginning of the span.

Applies to