Crc64.Hash Method
Definition
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.
Overloads
Hash(Byte[]) |
Computes the CRC-64 hash of the provided data. |
Hash(ReadOnlySpan<Byte>) |
Computes the CRC-64 hash of the provided data. |
Hash(ReadOnlySpan<Byte>, Span<Byte>) |
Computes the CRC-64 hash of the provided data into the provided destination. |
Hash(Byte[])
- Source:
- Crc64.cs
- Source:
- Crc64.cs
Computes the CRC-64 hash of the provided data.
public:
static cli::array <System::Byte> ^ Hash(cli::array <System::Byte> ^ source);
public static byte[] Hash (byte[] source);
static member Hash : byte[] -> byte[]
Public Shared Function Hash (source As Byte()) As Byte()
Parameters
- source
- Byte[]
The data to hash.
Returns
The CRC-64 hash of the provided data.
Exceptions
source
is null
.
Applies to
Hash(ReadOnlySpan<Byte>)
- Source:
- Crc64.cs
- Source:
- Crc64.cs
Computes the CRC-64 hash of the provided data.
public:
static cli::array <System::Byte> ^ Hash(ReadOnlySpan<System::Byte> source);
public static byte[] Hash (ReadOnlySpan<byte> source);
static member Hash : ReadOnlySpan<byte> -> byte[]
Public Shared Function Hash (source As ReadOnlySpan(Of Byte)) As Byte()
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
Returns
The CRC-64 hash of the provided data.
Applies to
Hash(ReadOnlySpan<Byte>, Span<Byte>)
- Source:
- Crc64.cs
- Source:
- Crc64.cs
Computes the CRC-64 hash of the provided data into the provided destination.
public:
static int Hash(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
public static int Hash (ReadOnlySpan<byte> source, Span<byte> destination);
static member Hash : ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
Returns
The number of bytes written to destination
.