BinaryPrimitives.TryReadUInt32BigEndian Método

Definición

Importante

Esta API no es conforme a CLS.

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

public:
 static bool TryReadUInt32BigEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] System::UInt32 % value);
[System.CLSCompliant(false)]
public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value);
[<System.CLSCompliant(false)>]
static member TryReadUInt32BigEndian : ReadOnlySpan<byte> * uint32 -> bool
Public Shared Function TryReadUInt32BigEndian (source As ReadOnlySpan(Of Byte), ByRef value As UInteger) As Boolean

Parámetros

source
ReadOnlySpan<Byte>

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

value
UInt32

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 ; UInt32de lo contrario, false.

Atributos

Comentarios

Lee exactamente 4 bytes desde el principio del intervalo.

Se aplica a