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

Definition

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

public:
 static bool TryWriteInt64LittleEndian(Span<System::Byte> destination, long value);
public static bool TryWriteInt64LittleEndian (Span<byte> destination, long value);
static member TryWriteInt64LittleEndian : Span<byte> * int64 -> bool
Public Shared Function TryWriteInt64LittleEndian (destination As Span(Of Byte), value As Long) As Boolean

Parameters

destination
Span<Byte>

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

value
Int64

The value to write into the span of bytes.

Returns

true if the span is large enough to contain an Int64; otherwise, false.

Remarks

Writes exactly 8 bytes to the beginning of the span.

Applies to