Function

FwupdPlugincommon_crc16

since: 1.5.0

Declaration [src]

guint16
fu_common_crc16 (
  const guint8* buf,
  gsize bufsz
)

Description [src]

Returns the CRC-16-IBM cyclic redundancy value for the given memory buffer.

Available since: 1.5.0

Parameters

buf

Type: const guint8*

Memory buffer.

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

Type: gsize

Size of buf.

Return value

Type: guint16

CRC value.