BinaryPrimitives.ReadDoubleLittleEndian(ReadOnlySpan<Byte>) Method

Definition

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

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

Parameters

source
ReadOnlySpan<Byte>

The read-only span to read.

Returns

The little endian value.

Exceptions

source is too small to contain a Double.

Remarks

Reads exactly 8 bytes from the beginning of the span.

Applies to