BinaryPrimitives.TryReadInt64BigEndian Método

Definição

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

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

Parâmetros

source
ReadOnlySpan<Byte>

O intervalo de bytes para leitura e apenas leitura.

value
Int64

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 Int64; caso contrário, false.

Observações

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

Aplica-se a