XxHash32.TryHash Méthode
Définition
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 le hachage XxHash32 des données fournies dans la destination fournie.
public static bool TryHash (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int seed = 0);
static member TryHash : ReadOnlySpan<byte> * Span<byte> * int * int -> bool
Public Shared Function TryHash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional seed As Integer = 0) As Boolean
Paramètres
- source
- ReadOnlySpan<Byte>
Données à hacher.
- bytesWritten
- Int32
Quand cette méthode est retournée, elle contient le nombre d’octets écrits sur destination
.
- seed
- Int32
Valeur initiale de ce calcul de hachage. La valeur par défaut est zéro.
Retours
true
si destination
est suffisamment long pour recevoir la valeur de hachage calculée (4 octets) ; sinon, false
.