編集

次の方法で共有


Crc64.TryHash Method

Definition

Overloads

Name Description
TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Attempts to compute the CRC-64 hash of the provided data into the provided destination.

TryHash(Crc64ParameterSet, ReadOnlySpan<Byte>, Span<Byte>, Int32)

TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Source:
Crc64.cs
Source:
Crc64.cs
Source:
Crc64.cs
Source:
Crc64.cs

Attempts to compute the CRC-64 hash of the provided data into the provided destination.

public:
 static bool TryHash(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHash (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 that receives the computed hash value.

bytesWritten
Int32

When this method returns, contains the number of bytes written to destination.

Returns

true if destination is long enough to receive the computed hash value (8 bytes); otherwise, false.

Applies to

TryHash(Crc64ParameterSet, ReadOnlySpan<Byte>, Span<Byte>, Int32)

Source:
Crc64.cs
public:
 static bool TryHash(System::IO::Hashing::Crc64ParameterSet ^ parameterSet, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHash(System.IO.Hashing.Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHash : System.IO.Hashing.Crc64ParameterSet * ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHash (parameterSet As Crc64ParameterSet, source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parameters

parameterSet
Crc64ParameterSet
source
ReadOnlySpan<Byte>
destination
Span<Byte>
bytesWritten
Int32

Returns

Applies to