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

Definição

Tenta calcular o hash dos dados usando o algoritmo MD5.

public:
 static bool TryHashData(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member TryHashData : ReadOnlySpan<byte> * Span<byte> * int -> bool
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.

destination
Span<Byte>

O buffer para receber o valor de hash.

bytesWritten
Int32

Quando este método retorna, contém o número total de bytes escritos em destination.

Devoluções

false se destination for demasiado pequeno para conter o hash calculado, true caso contrário.

Atributos

Aplica-se a