HashAlgorithm.TryComputeHash(ReadOnlySpan<Byte>, Span<Byte>, Int32) Método

Definição

Tenta calcular o valor de hash para a matriz de bytes especificada.Attempts to compute the hash value for the specified byte array.

public:
 bool TryComputeHash(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryComputeHash (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
member this.TryComputeHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Function TryComputeHash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parâmetros

source
ReadOnlySpan<Byte>

A entrada para a qual calcular o código hash.The input to compute the hash code for.

destination
Span<Byte>

O buffer que recebe o valor de hash.The buffer to receive the hash value.

bytesWritten
Int32

Quando esse método é retornado, o número total de bytes gravados em destination.When this method returns, the total number of bytes written into destination. Esse parâmetro é tratado como não inicializado.This parameter is treated as uninitialized.

Retornos

Boolean

true se destination for longo o suficiente para receber o valor de hash; caso contrário, false.true if destination is long enough to receive the hash value; otherwise, false.

Aplica-se a