BinaryPrimitives.TryReadUInt64BigEndian Método

Definição

Importante

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

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

public:
 static bool TryReadUInt64BigEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] System::UInt64 % value);
[System.CLSCompliant(false)]
public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value);
[<System.CLSCompliant(false)>]
static member TryReadUInt64BigEndian : ReadOnlySpan<byte> * uint64 -> bool
Public Shared Function TryReadUInt64BigEndian (source As ReadOnlySpan(Of Byte), ByRef value As ULong) As Boolean

Parâmetros

source
ReadOnlySpan<Byte>

O intervalo somente leitura de bytes a serem lidos.

value
UInt64

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

Atributos

Comentários

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

Aplica-se a