Skip to content
CShift0.32

Crc32

Struct · namespace System.Compression · Since 0.28

struct Crc32

The CRC-32 checksum of zip, gzip and PNG (the polynomial 0xEDB88320, reflected).

uint32 crc = Crc32.Compute(bytes);
uint32 same = Crc32.Update(Crc32.Update(0, first), second); // in parts
Name Description
Compute The checksum of data.
Update Continues the checksum crc of the bytes before data (0 at the start).
static uint32 Compute(ReadOnlySlice<uint8> data)

The checksum of data.

static uint32 Update(uint32 crc, ReadOnlySlice<uint8> data)

Continues the checksum crc of the bytes before data (0 at the start).