Trait gio::prelude::MemoryOutputStreamExt
source · pub trait MemoryOutputStreamExt: IsA<MemoryOutputStream> + Sealed + 'static {
// Provided methods
fn data_size(&self) -> usize { ... }
fn steal_as_bytes(&self) -> Bytes { ... }
fn connect_data_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn data_size(&self) -> usize
fn data_size(&self) -> usize
Returns the number of bytes from the start up to including the last byte written in the stream that has not been truncated away.
Returns
the number of bytes written to the stream
sourcefn steal_as_bytes(&self) -> Bytes
fn steal_as_bytes(&self) -> Bytes
Returns data from the self
as a glib::Bytes
. self
must be
closed before calling this function.
Returns
the stream’s data
fn connect_data_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.