Function

FwupdPlugincrc32_full

since: 1.8.2

Declaration [src]

guint32
fu_crc32_full (
  const guint8* buf,
  gsize bufsz,
  guint32 crc,
  guint32 polynomial
)

Description [src]

Returns the cyclic redundancy check value for the given memory buffer.

Available since: 1.8.2

Parameters

buf

Type: const guint8*

Memory buffer.

The data is owned by the caller of the function.
bufsz

Type: gsize

Size of buf.

crc

Type: guint32

Initial CRC value, typically 0xFFFFFFFF.

polynomial

Type: guint32

CRC polynomial, typically 0xEDB88320

Return value

Type: guint32

CRC value.