BinaryPrimitives.ReadInt64LittleEndian(ReadOnlySpan<Byte>) 方法

定义

从字节只读范围的开头,将 Int64 读取为小字节序。Reads an Int64 from the beginning of a read-only span of bytes, as little endian.

public:
 static long ReadInt64LittleEndian(ReadOnlySpan<System::Byte> source);
public static long ReadInt64LittleEndian (ReadOnlySpan<byte> source);
static member ReadInt64LittleEndian : ReadOnlySpan<byte> -> int64
Public Shared Function ReadInt64LittleEndian (source As ReadOnlySpan(Of Byte)) As Long

参数

source
ReadOnlySpan<Byte>

要读取的只读跨度。The read-only span to read.

返回

Int64

小字节序值。The little endian value.

例外

source 太小,无法包含 Int64source is too small to contain an Int64.

注解

从跨度的开头精确读取8个字节。Reads exactly 8 bytes from the beginning of the span.

适用于