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

定义

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

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

参数

destination
Span<Byte>

要以大字节序形式写入值的字节范围。The span of bytes where the value is to be written, as big 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.

适用于