FwupdPlugin.memcmp_safe
Description: Reference for FwupdPlugin.memcmp_safe

### Function

# FwupdPluginmemcmp_safe

#### Declaration [src]

    gboolean
    fu_memcmp_safe (
      const guint8* buf1,
      gsize bufsz1,
      const guint8* buf2,
      gsize bufsz2,
      GError** error
    )

#### Description [src]

Compares the buffers for equality.

Available since: | 1.8.2

#### Parameters

`buf1` | `const guint8*`
| A buffer.
| The data is owned by the caller of the function.
`bufsz1` | `gsize`
| Sizeof `buf1`
`buf2` | `const guint8*`
| Another buffer.
| The data is owned by the caller of the function.
`bufsz2` | `gsize`
| Sizeof `buf2`
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` if `buf1` and `buf2` are identical.