BinaryPrimitives.TryReadUInt16BigEndian Método

Definición

Importante

Esta API no es conforme a CLS.

Lee desde UInt16 el principio de un intervalo de bytes de solo lectura, como big endian.

public:
 static bool TryReadUInt16BigEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] System::UInt16 % value);
[System.CLSCompliant(false)]
public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value);
[<System.CLSCompliant(false)>]
static member TryReadUInt16BigEndian : ReadOnlySpan<byte> * uint16 -> bool
Public Shared Function TryReadUInt16BigEndian (source As ReadOnlySpan(Of Byte), ByRef value As UShort) As Boolean

Parámetros

source
ReadOnlySpan<Byte>

Intervalo de bytes de solo lectura que se va a leer.

value
UInt16

Cuando este método devuelve, contiene el valor leído fuera del intervalo de bytes de solo lectura, como big endian.

Devoluciones

true si el intervalo es lo suficientemente grande como para contener ; UInt16de lo contrario, false.

Atributos

Comentarios

Lee exactamente 2 bytes desde el principio del intervalo.

Se aplica a