FwupdPlugin.UdevDevice.pread

### Method

# FwupdPlugin UdevDevicepread

#### Declaration [src]

    gboolean
    fu_udev_device_pread (
      FuUdevDevice* self,
      goffset port,
      guint8* buf,
      gsize bufsz,
      GError** error
    )

#### Description [src]

Read a buffer from a file descriptor at a given offset.

Available since: | 1.8.2

#### Parameters

`port` | `goffset`
| Offset address.
`buf` | `guint8*`
| Data.
| The data is owned by the caller of the function.
`bufsz` | `gsize`
| Size of `buf`.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` for success.