IOChannel
A data structure representing an IO Channel. The fields should be considered private and should only be accessed with the following functions.
Skipped during bindings generation
parameter
length
: Unsupported pointer to primitive typeparameter
bytes_read
: Unsupported pointer to primitive typeparameter
buf
: buf: Out parameter is not supportedparameter
str_return
: str_return: Out parameter is not supportedparameter
terminator_pos
: Unsupported pointer to primitive typeparameter
str_return
: str_return: Out parameter is not supportedparameter
thechar
: thechar: Out parameter is not supportedparameter
bytes_written
: Unsupported pointer to primitive typeparameter
buf
: guint8field
ref_count
: Record field ref_count is privatefield
funcs
: Record field funcs is privatefield
encoding
: Record field encoding is privatefield
read_cd
: Record field read_cd is privatefield
write_cd
: Record field write_cd is privatefield
line_term
: Record field line_term is privatefield
line_term_len
: Record field line_term_len is privatefield
buf_size
: Record field buf_size is privatefield
read_buf
: Record field read_buf is privatefield
encoded_read_buf
: Record field encoded_read_buf is privatefield
write_buf
: Record field write_buf is privatefield
partial_write_buf
: Record field partial_write_buf is privatefield
use_buffer
: Record field use_buffer is privatefield
do_encode
: Record field do_encode is privatefield
close_on_unref
: Record field close_on_unref is privatefield
is_readable
: Record field is_readable is privatefield
is_writeable
: Record field is_writeable is privatefield
is_seekable
: Record field is_seekable is privatefield
reserved1
: Record field reserved1 is privatefield
reserved2
: Record field reserved2 is private
Constructors
Functions
This function returns a #GIOCondition depending on whether there is data to be read/space to write data in the internal buffers in the #GIOChannel. Only the flags %G_IO_IN and %G_IO_OUT may be set.
Returns whether @channel is buffered.
Gets the buffer size.
Returns whether the file/socket/whatever associated with @channel will be closed when @channel receives its final unref and is destroyed. The default value of this is true for channels created by g_io_channel_new_file (), and false for all other channels.
Gets the encoding for the input/output of the channel. The internal encoding is always UTF-8. The encoding null makes the channel safe for binary data.
Replacement for g_io_channel_seek() with the new API.
The buffering state can only be set if the channel's encoding is null. For any other encoding, the channel must be buffered.
Sets the buffer size.
Whether to close the channel on the final unref of the #GIOChannel data structure. The default value of this is true for channels created by g_io_channel_new_file (), and false for all other channels.
Sets the encoding for the input/output of the channel. The internal encoding is always UTF-8. The default encoding for the external file is UTF-8.
This sets the string that #GIOChannel uses to determine where in the file a line break occurs.
Writes a Unicode character to @channel. This function cannot be called on a channel with null encoding.