Function

FwupdPlugincommon_crc32_full

Declaration [src]

guint32
fu_common_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.5.0

Parameters

buf const guint8*
 

Memory buffer.

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

Size of buf.

crc guint32
 

Initial CRC value, typically 0xFFFFFFFF.

polynomial guint32
 

CRC polynomial, typically 0xEDB88320

Return value

Returns: guint32
 

CRC value.