Method

FwupdPluginIOChannelwrite_byte_array

Declaration [src]

gboolean
fu_io_channel_write_byte_array (
  FuIOChannel* self,
  GByteArray* buf,
  guint timeout_ms,
  FuIOChannelFlags flags,
  GError** error
)

Description [src]

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

Available since:1.3.2

Parameters

buf An array of guint8
 

Buffer to write.

 The data is owned by the caller of the function.
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.