BinaryPrimitives.ReadDoubleBigEndian(ReadOnlySpan<Byte>) Method

Definition

Reads a Double from the beginning of a read-only span of bytes, as big endian.

public:
 static double ReadDoubleBigEndian(ReadOnlySpan<System::Byte> source);
public static double ReadDoubleBigEndian (ReadOnlySpan<byte> source);
static member ReadDoubleBigEndian : ReadOnlySpan<byte> -> double
Public Shared Function ReadDoubleBigEndian (source As ReadOnlySpan(Of Byte)) As Double

Parameters

source
ReadOnlySpan<Byte>

The read-only span to read.

Returns

The big endian value.

Exceptions

source is too small to contain a Double.

Remarks

Reads exactly 8 bytes from the beginning of the span.

Applies to