Sets our main struct and passes it to the parent class.
Creates a new #GInputStream from the given @base_stream, with a buffer set to the default size (4 kilobytes).
Creates a new #GBufferedInputStream from the given @base_stream, with a buffer set to @size.
Tries to read @count bytes from the stream into the buffer. Will block during this read.
Reads data into @stream's buffer asynchronously, up to @count size. @io_priority can be used to prioritize reads. For the synchronous version of this function, see g_buffered_input_stream_fill().
Finishes an asynchronous read.
Gets the size of the available data within the stream.
Gets the size of the input buffer.
Get the main Gtk struct
the main Gtk struct as a void*
Peeks in the buffer, copying data of size @count into @buffer, offset @offset bytes.
Returns the buffer with the currently available bytes. The returned buffer must not be modified and will become invalid when reading from the stream or filling the buffer.
Tries to read a single byte from the stream or the buffer. Will block during this read.
Sets the size of the internal buffer of @stream to @size, or to the size of the contents of the buffer. The buffer can never be resized smaller than its current contents.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Gets the base stream for the filter stream.
Returns whether the base stream will be closed when @stream is closed.
Sets whether the base stream will be closed when @stream is closed.
Get the main Gtk struct
the main Gtk struct as a void*
Tests if the stream supports the #GSeekableIface.
Tests if the length of the stream can be adjusted with g_seekable_truncate().
Seeks in the stream by the given @offset, modified by @type.
Tells the current position within the stream.
Sets the length of the stream to @offset. If the stream was previously larger than @offset, the extra data is discarded. If the stream was previouly shorter than @offset, it is extended with NUL ('\0') bytes.
Buffered input stream implements #GFilterInputStream and provides for buffered reads.
By default, #GBufferedInputStream's buffer size is set at 4 kilobytes.
To create a buffered input stream, use g_buffered_input_stream_new(), or g_buffered_input_stream_new_sized() to specify the buffer's size at construction.
To get the size of a buffer within a buffered input stream, use g_buffered_input_stream_get_buffer_size(). To change the size of a buffered input stream's buffer, use g_buffered_input_stream_set_buffer_size(). Note that the buffer's size cannot be reduced below the size of the data within the buffer.