[][src]Trait gio::BufferedOutputStreamExt

pub trait BufferedOutputStreamExt: 'static {
    fn get_auto_grow(&self) -> bool;
fn get_buffer_size(&self) -> usize;
fn set_auto_grow(&self, auto_grow: bool);
fn set_buffer_size(&self, size: usize);
fn connect_property_auto_grow_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_buffer_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all BufferedOutputStream methods.

Implementors

BufferedOutputStream

Required methods

fn get_auto_grow(&self) -> bool

Checks if the buffer automatically grows as data is added.

Returns

true if the self's buffer automatically grows, false otherwise.

fn get_buffer_size(&self) -> usize

Gets the size of the buffer in the self.

Returns

the current size of the buffer.

fn set_auto_grow(&self, auto_grow: bool)

Sets whether or not the self's buffer should automatically grow. If auto_grow is true, then each write will just make the buffer larger, and you must manually flush the buffer to actually write out the data to the underlying stream.

auto_grow

a gboolean.

fn set_buffer_size(&self, size: usize)

Sets the size of the internal buffer to size.

size

a gsize.

fn connect_property_auto_grow_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_buffer_size_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<BufferedOutputStream>> BufferedOutputStreamExt for O[src]

Loading content...