Method

GLibIOChannelread

Declaration

GIOError
g_io_channel_read (
  GIOChannel* channel,
  gchar* buf,
  gsize count,
  gsize* bytes_read
)

Description

Reads data from a GIOChannel.

Deprecated since:2.2

Use g_io_channel_read_chars() instead.

Parameters

buf gchar*
 

A buffer to read the data into (which should be at least count bytes long)

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
count gsize
 

The number of bytes to read from the GIOChannel.

bytes_read gsize*
 

Returns the number of bytes actually read.

 The data is owned by the caller of the function.

Return value

Returns: GIOError
 

G_IO_ERROR_NONE if the operation was successful.