BinaryPrimitives.TryReadDoubleLittleEndian(ReadOnlySpan<Byte>, 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>
要读取的字节只读范围。The read-only span of bytes to read.
- value
- Double
此方法返回时,将包含作为 little endian 从字节只读范围中读取的值。When this method returns, contains the value read out of the read-only span of bytes, as little endian.
返回
如果范围足够大,可以包含 Double,则为 true;否则为 false。true if the span is large enough to contain a Double; otherwise, false.
注解
从跨度的开头精确读取8个字节。Reads exactly 8 bytes from the beginning of the span.