GLib.IOFuncs

Fields

Name

Type

Access

Description

io_close

object

r

closes the channel. This is called from GLib.IOChannel.close() after flushing the buffers.

io_create_watch

object

r

creates a watch on the channel. This call corresponds directly to GLib.io_create_watch().

io_free

object

r

called from GLib.IOChannel.unref() when the channel needs to be freed. This function must free the memory associated with the channel, including freeing the GLib.IOChannel structure itself. The channel buffers have been flushed and possibly io_close has been called by the time this function is called.

io_get_flags

object

r

gets the GLib.IOFlags for the channel. This function need only return the GLib.IOFlags.APPEND and GLib.IOFlags.NONBLOCK flags; GLib.IOChannel.get_flags() automatically adds the others as appropriate.

io_read

object

r

reads raw bytes from the channel. This is called from various functions such as GLib.IOChannel.read_chars() to read raw bytes from the channel. Encoding and buffering issues are dealt with at a higher level.

io_seek

object

r

seeks the channel. This is called from GLib.IOChannel.seek() on channels that support it.

io_set_flags

object

r

sets the GLib.IOFlags on the channel. This is called from GLib.IOChannel.set_flags() with all flags except for GLib.IOFlags.APPEND and GLib.IOFlags.NONBLOCK masked out.

io_write

object

r

writes raw bytes to the channel. This is called from various functions such as GLib.IOChannel.write_chars() to write raw bytes to the channel. Encoding and buffering issues are dealt with at a higher level.

Methods

None

Details

class GLib.IOFuncs

A table of functions used to handle different types of GLib.IOChannel in a generic way.