Edit

Crc32.Hash Method

Definition

Overloads

Name Description
Hash(Crc32ParameterSet, ReadOnlySpan<Byte>, Span<Byte>)
Hash(ReadOnlySpan<Byte>, Span<Byte>)

Computes the CRC-32 hash of the provided data into the provided destination.

Hash(Crc32ParameterSet, ReadOnlySpan<Byte>)
Hash(Crc32ParameterSet, Byte[])
Hash(ReadOnlySpan<Byte>)

Computes the CRC-32 hash of the provided data.

Hash(Byte[])

Computes the CRC-32 hash of the provided data.

Hash(Crc32ParameterSet, ReadOnlySpan<Byte>, Span<Byte>)

Source:
Crc32.cs
public:
 static int Hash(System::IO::Hashing::Crc32ParameterSet ^ parameterSet, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
public static int Hash(System.IO.Hashing.Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination);
static member Hash : System.IO.Hashing.Crc32ParameterSet * ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function Hash (parameterSet As Crc32ParameterSet, source As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer

Parameters

parameterSet
Crc32ParameterSet
source
ReadOnlySpan<Byte>
destination
Span<Byte>

Returns

Applies to

Hash(ReadOnlySpan<Byte>, Span<Byte>)

Source:
Crc32.cs
Source:
Crc32.cs
Source:
Crc32.cs
Source:
Crc32.cs

Computes the CRC-32 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.

destination
Span<Byte>

The buffer that receives the computed hash value.

Returns

The number of bytes written to destination.

Applies to

Hash(Crc32ParameterSet, ReadOnlySpan<Byte>)

Source:
Crc32.cs
public:
 static cli::array <System::Byte> ^ Hash(System::IO::Hashing::Crc32ParameterSet ^ parameterSet, ReadOnlySpan<System::Byte> source);
public static byte[] Hash(System.IO.Hashing.Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source);
static member Hash : System.IO.Hashing.Crc32ParameterSet * ReadOnlySpan<byte> -> byte[]
Public Shared Function Hash (parameterSet As Crc32ParameterSet, source As ReadOnlySpan(Of Byte)) As Byte()

Parameters

parameterSet
Crc32ParameterSet
source
ReadOnlySpan<Byte>

Returns

Byte[]

Applies to

Hash(Crc32ParameterSet, Byte[])

Source:
Crc32.cs
public:
 static cli::array <System::Byte> ^ Hash(System::IO::Hashing::Crc32ParameterSet ^ parameterSet, cli::array <System::Byte> ^ source);
public static byte[] Hash(System.IO.Hashing.Crc32ParameterSet parameterSet, byte[] source);
static member Hash : System.IO.Hashing.Crc32ParameterSet * byte[] -> byte[]
Public Shared Function Hash (parameterSet As Crc32ParameterSet, source As Byte()) As Byte()

Parameters

parameterSet
Crc32ParameterSet
source
Byte[]

Returns

Byte[]

Applies to

Hash(ReadOnlySpan<Byte>)

Source:
Crc32.cs
Source:
Crc32.cs
Source:
Crc32.cs
Source:
Crc32.cs

Computes the CRC-32 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

Byte[]

The CRC-32 hash of the provided data.

Applies to

Hash(Byte[])

Source:
Crc32.cs
Source:
Crc32.cs
Source:
Crc32.cs
Source:
Crc32.cs

Computes the CRC-32 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

Byte[]

The CRC-32 hash of the provided data.

Exceptions

source is null.

Applies to