BinaryPrimitives.WriteDoubleLittleEndian(Span<Byte>, Double) 方法

定义

Double 以小字节序形式写入字节范围。Writes a Double into a span of bytes, as little endian.

public:
 static void WriteDoubleLittleEndian(Span<System::Byte> destination, double value);
public static void WriteDoubleLittleEndian (Span<byte> destination, double value);
static member WriteDoubleLittleEndian : Span<byte> * double -> unit
Public Shared Sub WriteDoubleLittleEndian (destination As Span(Of Byte), value As Double)

参数

destination
Span<Byte>

要以小字节序形式写入值的字节范围。The span of bytes where the value is to be written, as little endian.

value
Double

要写入到字节范围内的值。The value to write into the span of bytes.

例外

destination 太小,无法包含 Doubledestination is too small to contain a Double.

注解

正好向范围的开头写入8个字节。Writes exactly 8 bytes to the beginning of the span.

适用于