Langue

NonCryptographicHashAlgorithm.TryGetCurrentHash Méthode

Définition

Tente d’écrire la valeur destination de hachage calculée sans modifier l’état cumulé.

public:
 bool TryGetCurrentHash(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryGetCurrentHash(Span<byte> destination, out int bytesWritten);
member this.TryGetCurrentHash : Span<byte> * int -> bool
Public Function TryGetCurrentHash (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Paramètres

destination
Span<Byte>

Mémoire tampon qui reçoit la valeur de hachage calculée.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient le nombre d’octets écrits dans destination.

Retours

true s’il destination est suffisamment long pour recevoir la valeur de hachage calculée ; sinon, false.

S’applique à