SHA512.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, Int32) 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 de données à l’aide de l’algorithme SHA-512.
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
Paramètres
- source
- ReadOnlySpan<Byte>
Données à hacher.
- bytesWritten
- Int32
Lorsque cette méthode retourne, contient le nombre total d’octets écrits en destination.
Retours
false s’il destination est trop petit pour contenir le hachage calculé, true sinon.