MD5.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
C#
public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member TryHashData : ReadOnlySpan<byte> * Span<byte> * int -> bool
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
- source
- ReadOnlySpan<Byte>
The data to hash.
- bytesWritten
- Int32
When this method returns, the total number of bytes written into destination
.
false
if destination
is too small to hold the calculated hash, true
otherwise.
- Attributes
Toode | Versioonid |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: