IOChannel.writeChars

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

On seekable channels with encodings other than null or UTF-8, generic mixing of reading and writing is not allowed. A call to g_io_channel_write_chars () may only be made on a channel from which data has been read in the cases described in the documentation for g_io_channel_set_encoding ().

class IOChannel
writeChars
(
ubyte[] buf
,
out size_t bytesWritten
)

Parameters

buf ubyte[]

a buffer to write data from

bytesWritten size_t

The number of bytes written. This can be nonzero even if the return value is not G_IO_STATUS_NORMAL. If the return value is G_IO_STATUS_NORMAL and the channel is blocking, this will always be equal to count if count >= 0.

Return Value

Type: glib.types.IOStatus

the status of the operation.