IOChannel.readChars

Replacement for glib.iochannel.IOChannel.read with the new API.

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

Parameters

buf ubyte[]

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 Value

Type: glib.types.IOStatus

the status of the operation.