BinaryPrimitives.ReadDoubleLittleEndian(ReadOnlySpan<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.