[][src]Trait libheif_rs::Reader

pub trait Reader {
    pub fn position(&mut self) -> u64;
pub fn read(&mut self, buf: &mut [u8]) -> Result<usize>;
pub fn seek(&mut self, position: u64) -> Result<u64>;
pub fn wait_for_file_size(&mut self, target_size: u64) -> ReaderGrowStatus; }

Required methods

pub fn position(&mut self) -> u64[src]

Current position, in bytes, inside of a source.

pub fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]

Pull some bytes from a source into the specified buffer, returning how many bytes were read.

pub fn seek(&mut self, position: u64) -> Result<u64>[src]

Seek to an position, in bytes, from start of a source.

pub fn wait_for_file_size(&mut self, target_size: u64) -> ReaderGrowStatus[src]

Wait until a source will be ready to read bytes to the specified position.

Loading content...

Implementors

impl<T> Reader for StreamReader<T> where
    T: Read + Seek
[src]

Loading content...