Replacement for glib.iochannel.IOChannel.read with the new API.
a buffer to read data into
The number of bytes read. This may be zero even on success if count < 6 and the channel's encoding is non-null. This indicates that the next UTF-8 character is too wide for the buffer.
the status of the operation.
Replacement for glib.iochannel.IOChannel.read with the new API.