BinaryPrimitives.ReadInt32BigEndian(ReadOnlySpan<Byte>) Método

Definição

Lê um Int32 desde o início de um intervalo de bytes somente leitura, como big endian.Reads an Int32 from the beginning of a read-only span of bytes, as big endian.

public:
 static int ReadInt32BigEndian(ReadOnlySpan<System::Byte> source);
public static int ReadInt32BigEndian (ReadOnlySpan<byte> source);
static member ReadInt32BigEndian : ReadOnlySpan<byte> -> int
Public Shared Function ReadInt32BigEndian (source As ReadOnlySpan(Of Byte)) As Integer

Parâmetros

source
ReadOnlySpan<Byte>

O intervalo somente leitura a ser lido.The read-only span to read.

Retornos

Int32

O valor big endian.The big endian value.

Exceções

source é muito pequeno para conter um Int32.source is too small to contain an Int32.

Comentários

Lê exatamente 4 bytes do início do span.Reads exactly 4 bytes from the beginning of the span.

Aplica-se a