BinaryPrimitives.TryReadDoubleLittleEndian 方法

定義

從一個只讀位元組區段的開頭讀取 a Double ,作為小端序。

public:
 static bool TryReadDoubleLittleEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] double % value);
public static bool TryReadDoubleLittleEndian(ReadOnlySpan<byte> source, out double value);
static member TryReadDoubleLittleEndian : ReadOnlySpan<byte> * double -> bool
Public Shared Function TryReadDoubleLittleEndian (source As ReadOnlySpan(Of Byte), ByRef value As Double) As Boolean

參數

source
ReadOnlySpan<Byte>

唯讀的位元組範圍。

value
Double

當此方法回傳時,包含從唯讀位元組區間中讀取的值,作為小恩序。

傳回

true 若跨度足夠大以容納 ; Double否則,則 false

備註

從區間起始處正好讀取 8 位元組。

適用於