แก้ไข

แชร์ผ่าน


MD5.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, Int32) Method

Definition

Attempts to compute the hash of data using the MD5 algorithm.

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);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static bool TryHashData (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHashData : ReadOnlySpan<byte> * Span<byte> * int -> bool
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
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

Parameters

source
ReadOnlySpan<Byte>

The data to hash.

destination
Span<Byte>

The buffer to receive the hash value.

bytesWritten
Int32

When this method returns, the total number of bytes written into destination.

Returns

false if destination is too small to hold the calculated hash, true otherwise.

Attributes

Applies to