BinaryPrimitives.TryReadUInt32BigEndian Método

Definição

Importante

Esta API não está em conformidade com CLS.

Lê um UInt32 desde o início de um intervalo somente leitura de bytes, como um grande endiano.

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>

O intervalo somente leitura de bytes a serem lidos.

value
UInt32

Quando esse método é retornado, contém o valor lido do intervalo somente leitura de bytes, como big endian.

Retornos

true se o intervalo for grande o suficiente para conter um UInt32; caso contrário, false.

Atributos

Comentários

Lê exatamente 4 bytes desde o início do intervalo.

Aplica-se a