BinaryPrimitives.WriteInt64BigEndian(Span<Byte>, Int64) Método

Definição

Grava um Int64 em um intervalo de bytes, como big endian.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)

Parâmetros

destination
Span<Byte>

O intervalo de bytes em que o valor deve ser gravado, como big endian.The span of bytes where the value is to be written, as big endian.

value
Int64

O valor a ser gravado no intervalo de bytes.The value to write into the span of bytes.

Exceções

destination é muito pequeno para conter um Int64.destination is too small to contain an Int64.

Comentários

Grava exatamente 8 bytes no início do span.Writes exactly 8 bytes to the beginning of the span.

Aplica-se a