gBufferedInputStreamNew(base.stream = NULL)
gBufferedInputStreamNewSized(base.stream, size)
gBufferedInputStreamGetBufferSize(object)
gBufferedInputStreamSetBufferSize(object, size)
gBufferedInputStreamGetAvailable(object)
gBufferedInputStreamPeekBuffer(object)
gBufferedInputStreamFill(object, count, cancellable = NULL, .errwarn = TRUE)
gBufferedInputStreamFillAsync(object, count, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gBufferedInputStreamFillFinish(object, result, .errwarn = TRUE)
gBufferedInputStreamReadByte(object, cancellable = NULL, .errwarn = TRUE)
gBufferedInputStream(base.stream, size)
GObject +----GInputStream +----GFilterInputStream +----GBufferedInputStream +----GDataInputStream
GFilterInputStream
and provides
for buffered reads. By default, GBufferedInputStream
's buffer size is set at 4 kilobytes. To create a buffered input stream, use gBufferedInputStreamNew
,
or gBufferedInputStreamNewSized
to specify the buffer's size at
construction. To get the size of a buffer within a buffered input stream, use
gBufferedInputStreamGetBufferSize
. To change the size of a
buffered input stream's buffer, use
gBufferedInputStreamSetBufferSize
. Note that the buffer's size
cannot be reduced below the size of the data within the buffer.gBufferedInputStream
is the result of collapsing the constructors of GBufferedInputStream
(gBufferedInputStreamNew
, gBufferedInputStreamNewSized
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.