BinaryPrimitives.TryReadInt16BigEndian Método

Definición

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

public:
 static bool TryReadInt16BigEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] short % value);
public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value);
static member TryReadInt16BigEndian : ReadOnlySpan<byte> * int16 -> bool
Public Shared Function TryReadInt16BigEndian (source As ReadOnlySpan(Of Byte), ByRef value As Short) As Boolean

Parámetros

source
ReadOnlySpan<Byte>

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

value
Int16

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

Devoluciones

true es si el intervalo es lo suficientemente grande como para contener ; Int16de lo contrario, falsees .

Comentarios

Lee exactamente 2 bytes desde el principio del intervalo.

Se aplica a