IOChannel.readChars

Replacement for g_io_channel_read() with the new API.

class IOChannel
readChars
(
out char[] buf
,
out size_t bytesRead
)

Parameters

buf char[]

a buffer to read data into

bytesRead size_t

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.

Return: the status of the operation.

Throws

GException on failure.

Meta