FwupdPlugin.sum16
Description: Reference for FwupdPlugin.sum16

### Function

# FwupdPluginsum16

#### Declaration [src]

    guint16
    fu_sum16 (
      const guint8* buf,
      gsize bufsz
    )

#### Description [src]

Returns the arithmetic sum of all bytes in `buf`, adding them one byte at a time.

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`.

#### Return value

Returns: | `guint16`
| Sum value.