BinaryPrimitives.ReadUInt16BigEndian(ReadOnlySpan<Byte>) Metódus

Definíció

Fontos

Ez az API nem CLS-kompatibilis.

A bájtok UInt16 írásvédett terjedelmének kezdetét olvassa be nagy endianként.

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

Paraméterek

source
ReadOnlySpan<Byte>

Az írásvédett tartomány az olvasáshoz.

Válaszok

A nagy endian érték.

Attribútumok

Kivételek

source túl kicsi ahhoz, hogy tartalmazzon egy UInt16.

Megjegyzések

Pontosan 2 bájtot olvas a span kezdetétől.

A következőre érvényes: