SHA256.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, Int32) Metodo

Definizione

Tenta di calcolare l'hash dei dati usando l'algoritmo SHA-256.

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

Parametri

source
ReadOnlySpan<Byte>

Dati di cui eseguire l'hash.

destination
Span<Byte>

Buffer per ricevere il valore hash.

bytesWritten
Int32

Quando termina, questo metodo contiene il numero totale di byte scritti in destination.

Valori restituiti

false se destination è troppo piccolo per contenere l'hash calcolato, true in caso contrario.

Si applica a