BinaryPrimitives.ReadUInt16BigEndian(ReadOnlySpan<Byte>) Metodo

Definizione

Importante

Questa API non è conforme a CLS.

Legge un oggetto UInt16 dall'inizio di un intervallo di byte di sola lettura, come big endian.

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

Parametri

source
ReadOnlySpan<Byte>

Intervallo di sola lettura da leggere.

Valori restituiti

Valore big endian.

Attributi

Eccezioni

source è troppo piccolo per contenere un oggetto UInt16.

Commenti

Legge esattamente 2 byte dall'inizio dell'intervallo.

Si applica a