HashAlgorithm.TryComputeHash(ReadOnlySpan<Byte>, Span<Byte>, Int32) Método
Definición
Intenta calcular el valor de hash para la 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>
La entrada para la cual se calcula el código hash.The input to compute the hash code for.
- bytesWritten
- Int32
Cuando este método devuelve un valor, el número total de bytes escritos en destination
.When this method returns, the total number of bytes written into destination
. Este parámetro se trata como sin inicializar.This parameter is treated as uninitialized.
Devoluciones
Es true
si destination
es lo suficientemente largo como para recibir el valor de hash; de lo contrario, false
.true
if destination
is long enough to receive the hash value; otherwise, false
.