次の方法で共有


BinaryPrimitives.ReadUInt16LittleEndian(ReadOnlySpan<Byte>) メソッド

定義

重要

この API は CLS 準拠ではありません。

バイトの読み取り専用スパンの先頭から、リトル エンディアンとして UInt16 を読み取ります。

public:
 static System::UInt16 ReadUInt16LittleEndian(ReadOnlySpan<System::Byte> source);
[System.CLSCompliant(false)]
public static ushort ReadUInt16LittleEndian (ReadOnlySpan<byte> source);
[<System.CLSCompliant(false)>]
static member ReadUInt16LittleEndian : ReadOnlySpan<byte> -> uint16
Public Shared Function ReadUInt16LittleEndian (source As ReadOnlySpan(Of Byte)) As UShort

パラメーター

source
ReadOnlySpan<Byte>

読み取る読み取り専用スパン。

戻り値

リトル エンディアン値。

属性

例外

source が小さすぎて UInt16 を格納できません。

注釈

スパンの先頭から正確に 2 バイトを読み取ります。

適用対象