BinaryPrimitives.TryWriteDoubleLittleEndian(Span<Byte>, Double) Método

Definição

Grava um Double em um intervalo de bytes, como little endian.Writes a Double into a span of bytes, as little endian.

public:
 static bool TryWriteDoubleLittleEndian(Span<System::Byte> destination, double value);
public static bool TryWriteDoubleLittleEndian (Span<byte> destination, double value);
static member TryWriteDoubleLittleEndian : Span<byte> * double -> bool
Public Shared Function TryWriteDoubleLittleEndian (destination As Span(Of Byte), value As Double) As Boolean

Parâmetros

destination
Span<Byte>

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

value
Double

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

Retornos

Boolean

true se o intervalo for grande o suficiente para conter um Double; caso contrário, false.true if the span is large enough to contain a Double; otherwise, false.

Comentários

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

Aplica-se a