IOChannel.read

glib.types.IOError read(ref ubyte[] buf, out size_t bytesRead)

Reads data from a #GIOChannel.

Parameters

bufa buffer to read the data into (which should be at least count bytes long)
bytesReadreturns the number of bytes actually read

Returns

G_IO_ERROR_NONE if the operation was successful.

Deprecated

Use [glib.iochannel.IOChannel.readChars] instead.