Struct libheif_rs::StreamReader
source · pub struct StreamReader<T>{ /* private fields */ }
Implementations§
source§impl<T> StreamReader<T>
impl<T> StreamReader<T>
pub fn new(stream: T, total_size: u64) -> StreamReader<T>
Trait Implementations§
source§impl<T> Debug for StreamReader<T>
impl<T> Debug for StreamReader<T>
source§impl<T> Reader for StreamReader<T>
impl<T> Reader for StreamReader<T>
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from a source into the specified buffer, returning
how many bytes were read.
source§fn seek(&mut self, position: u64) -> Result<u64>
fn seek(&mut self, position: u64) -> Result<u64>
Seek to an position, in bytes, from start of a source.
source§fn wait_for_file_size(&mut self, target_size: u64) -> ReaderGrowStatus
fn wait_for_file_size(&mut self, target_size: u64) -> ReaderGrowStatus
Wait until a source will be ready to read bytes to
the specified position.
Auto Trait Implementations§
impl<T> Freeze for StreamReader<T>where
T: Freeze,
impl<T> RefUnwindSafe for StreamReader<T>where
T: RefUnwindSafe,
impl<T> Send for StreamReader<T>where
T: Send,
impl<T> Sync for StreamReader<T>where
T: Sync,
impl<T> Unpin for StreamReader<T>where
T: Unpin,
impl<T> UnwindSafe for StreamReader<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more