HashAlgorithm.TryComputeHash Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente de calculer la valeur de hachage pour le tableau d’octets spécifié.
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
- source
- ReadOnlySpan<Byte>
Entrée pour laquelle le code de hachage doit être calculé.
- bytesWritten
- Int32
Quand cette méthode est retournée, nombre total d’octets écrits dans destination
. Ce paramètre est traité comme étant non initialisé.
true
si destination
n’est pas assez long pour recevoir la valeur de hachage ; sinon, false
.
Produit | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :