Function

FwupdPlugincrc32

Declaration [src]

guint32
fu_crc32 (
  FuCrcKind kind,
  const guint8* buf,
  gsize bufsz
)

Description [src]

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

Available since:2.0.0

Parameters

kind FuCrcKind
 

A FuCrcKind, typically FU_CRC_KIND_B32_STANDARD.

buf const guint8*
 

Memory buffer.

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

Size of buf.

Return value

Returns: guint32
 

CRC value.