BitOperations.Crc32C Method

Definition

Overloads

Crc32C(UInt32, Byte)

Accumulates the CRC (Cyclic redundancy check) checksum.

Crc32C(UInt32, UInt16)

Accumulates the CRC (Cyclic redundancy check) checksum.

Crc32C(UInt32, UInt32)

Accumulates the CRC (Cyclic redundancy check) checksum.

Crc32C(UInt32, UInt64)

Accumulates the CRC (Cyclic redundancy check) checksum.

Crc32C(UInt32, Byte)

Source:
BitOperations.cs
Source:
BitOperations.cs

Important

This API is not CLS-compliant.

Accumulates the CRC (Cyclic redundancy check) checksum.

C#
[System.CLSCompliant(false)]
public static uint Crc32C(uint crc, byte data);

Parameters

crc
UInt32

The base value to calculate checksum on.

data
Byte

The data for which to compute the checksum.

Returns

The CRC-checksum.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10

Crc32C(UInt32, UInt16)

Source:
BitOperations.cs
Source:
BitOperations.cs

Important

This API is not CLS-compliant.

Accumulates the CRC (Cyclic redundancy check) checksum.

C#
[System.CLSCompliant(false)]
public static uint Crc32C(uint crc, ushort data);

Parameters

crc
UInt32

The base value to calculate checksum on.

data
UInt16

The data for which to compute the checksum.

Returns

The CRC-checksum.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10

Crc32C(UInt32, UInt32)

Source:
BitOperations.cs
Source:
BitOperations.cs

Important

This API is not CLS-compliant.

Accumulates the CRC (Cyclic redundancy check) checksum.

C#
[System.CLSCompliant(false)]
public static uint Crc32C(uint crc, uint data);

Parameters

crc
UInt32

The base value to calculate checksum on.

data
UInt32

The data for which to compute the checksum.

Returns

The CRC-checksum.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10

Crc32C(UInt32, UInt64)

Source:
BitOperations.cs
Source:
BitOperations.cs

Important

This API is not CLS-compliant.

Accumulates the CRC (Cyclic redundancy check) checksum.

C#
[System.CLSCompliant(false)]
public static uint Crc32C(uint crc, ulong data);

Parameters

crc
UInt32

The base value to calculate checksum on.

data
UInt64

The data for which to compute the checksum.

Returns

The CRC-checksum.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10