Function

FwupdPlugincrc16_bytes

Declaration [src]

guint16
fu_crc16_bytes (
  FuCrcKind kind,
  GBytes* blob
)

Description [src]

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

Available since:2.0.2

Parameters

kind FuCrcKind
 

A FuCrcKind, typically FU_CRC_KIND_B16_XMODEM.

blob GBytes
 

A GBytes.

 The data is owned by the caller of the function.

Return value

Returns: guint16
 

CRC value.