Språk

NonCryptographicHashAlgorithm.TryGetCurrentHash Metod

Definition

Försöker skriva det beräknade hashvärdet till destination utan att ändra det ackumulerade tillståndet.

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

Parametrar

destination
Span<Byte>

Bufferten som tar emot det beräknade hashvärdet.

bytesWritten
Int32

När den här metoden returnerar innehåller antalet byte som skrivits till destination.

Returer

true om destination är tillräckligt lång för att ta emot det beräknade hashvärdet, falseannars .

Gäller för