FwupdPlugin.crc8_full
Description: Reference for FwupdPlugin.crc8_full

### Function

# FwupdPlugincrc8_full

#### Declaration [src]

    guint8
    fu_crc8_full (
      const guint8* buf,
      gsize bufsz,
      guint8 crc_init,
      guint8 polynomial
    )

#### Description [src]

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

Available since: | 1.8.2

#### Parameters

`buf` | `const guint8*`
| Memory buffer.
| The data is owned by the caller of the function.
`bufsz` | `gsize`
| Size of `buf`.
`crc_init` | `guint8`
| Initial CRC value, typically 0x00
`polynomial` | `guint8`
| CRC polynomial, e.g. 0x07 for CCITT.

#### Return value

Returns: | `guint8`
| CRC value.