BinaryPrimitives.TryReadUInt64LittleEndian(ReadOnlySpan<Byte>, UInt64) Método
Definição
Importante
Esta API não está em conformidade com CLS.
public:
static bool TryReadUInt64LittleEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] System::UInt64 % value);
[System.CLSCompliant(false)]
public static bool TryReadUInt64LittleEndian (ReadOnlySpan<byte> source, out ulong value);
[<System.CLSCompliant(false)>]
static member TryReadUInt64LittleEndian : ReadOnlySpan<byte> * uint64 -> bool
Public Shared Function TryReadUInt64LittleEndian (source As ReadOnlySpan(Of Byte), ByRef value As ULong) As Boolean
Parâmetros
- source
- ReadOnlySpan<Byte>
O intervalo de bytes somente leitura a ser lido.The read-only span of bytes to read.
- value
- UInt64
Quando esse método é retornado, o valor é lido do intervalo de bytes somente leitura, como little endian.When this method returns, the value read out of the read-only span of bytes, as little endian.
Retornos
true se o intervalo for grande o suficiente para conter um UInt64; caso contrário, false.true if the span is large enough to contain a UInt64; otherwise, false.
- Atributos
Comentários
Lê exatamente 8 bytes do início do span.Reads exactly 8 bytes from the beginning of the span.