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

Definicja

Próbuje obliczyć skrót danych przy użyciu algorytmu SHA256.

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

Parametry

source
ReadOnlySpan<Byte>

Dane do skrótu.

destination
Span<Byte>

Bufor do odbierania wartości skrótu.

bytesWritten
Int32

Gdy ta metoda zwraca wartość , łączna liczba bajtów zapisanych w pliku destination.

Zwraca

Boolean

false jeśli destination jest za mały, aby przechowywać obliczony skrót, true w przeciwnym razie.

Dotyczy