MD5.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, Int32) Método

Definição

Tenta computar o hash de dados usando o algoritmo MD5.Attempts to compute the hash of data using the MD5 algorithm.

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

Parâmetros

source
ReadOnlySpan<Byte>

Os dados para hash.The data to hash.

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.

Retornos

Boolean

false se destination for muito pequeno para manter o hash calculado. Caso contrário, true.false if destination is too small to hold the calculated hash, true otherwise.

Aplica-se a