FwupdPlugin.IOChannel.write_raw

### Method

# FwupdPlugin IOChannelwrite_raw

#### Declaration [src]

    gboolean
    fu_io_channel_write_raw (
      FuIOChannel* self,
      const guint8* data,
      gsize datasz,
      guint timeout_ms,
      FuIOChannelFlags flags,
      GError** error
    )

#### Description [src]

Writes bytes to the TTY, that will fail if exceeding `timeout_ms`.

Available since: | 1.2.2

#### Parameters

`data` | `const guint8*`
| Buffer to write.
| The data is owned by the caller of the function.
`datasz` | `gsize`
| Size of `data`.
`timeout_ms` | `guint`
| Timeout in ms.
`flags` | `FuIOChannelFlags`
| Channel flags, e.g. `FU_IO_CHANNEL_FLAG_SINGLE_SHOT`.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` if all the bytes was written.