[]Struct gio::BufferedInputStream

pub struct BufferedInputStream(_, _);

Buffered input stream implements FilterInputStream and provides for buffered reads.

By default, BufferedInputStream's buffer size is set at 4 kilobytes.

To create a buffered input stream, use BufferedInputStream::new, or BufferedInputStream::new_sized to specify the buffer's size at construction.

To get the size of a buffer within a buffered input stream, use BufferedInputStreamExt::get_buffer_size. To change the size of a buffered input stream's buffer, use BufferedInputStreamExt::set_buffer_size. Note that the buffer's size cannot be reduced below the size of the data within the buffer.

Implements

BufferedInputStreamExt, FilterInputStreamExt, InputStreamExt, glib::object::ObjectExt, SeekableExt, InputStreamExtManual

Implementations

impl BufferedInputStream[src]

pub fn new<P: IsA<InputStream>>(base_stream: &P) -> BufferedInputStream[src]

Creates a new InputStream from the given base_stream, with a buffer set to the default size (4 kilobytes).

base_stream

a InputStream

Returns

a InputStream for the given base_stream.

pub fn new_sized<P: IsA<InputStream>>(
    base_stream: &P,
    size: usize
) -> BufferedInputStream
[src]

Creates a new BufferedInputStream from the given base_stream, with a buffer set to size.

base_stream

a InputStream

size

a gsize

Returns

a InputStream.

Trait Implementations

impl Clone for BufferedInputStream

impl Debug for BufferedInputStream

impl Display for BufferedInputStream[src]

impl Eq for BufferedInputStream

impl Hash for BufferedInputStream

impl IsA<BufferedInputStream> for DataInputStream

impl IsA<FilterInputStream> for BufferedInputStream

impl IsA<InputStream> for BufferedInputStream

impl IsA<Seekable> for BufferedInputStream

impl Ord for BufferedInputStream

impl<T: ObjectType> PartialEq<T> for BufferedInputStream

impl<T: ObjectType> PartialOrd<T> for BufferedInputStream

impl StaticType for BufferedInputStream

Auto Trait Implementations

impl RefUnwindSafe for BufferedInputStream

impl !Send for BufferedInputStream

impl !Sync for BufferedInputStream

impl Unpin for BufferedInputStream

impl UnwindSafe for BufferedInputStream

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.