BinaryPrimitives.TryReadInt32BigEndian Método

Definição

Lê a Int32 partir do início de um intervalo de bytes só de leitura, como big endian.

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

Parâmetros

source
ReadOnlySpan<Byte>

O intervalo de bytes para leitura e apenas leitura.

value
Int32

Quando este método retorna, contém o valor lido do intervalo só de leitura dos bytes, como big endian.

Devoluções

true se o vão for suficientemente grande para conter um Int32; caso contrário, false.

Observações

Lê exatamente 4 bytes a partir do início do intervalo.

Aplica-se a