Trait libheif_rs::Reader [−][src]
pub trait Reader {
fn position(&mut self) -> u64;
fn read(&mut self, buf: &mut [u8]) -> Result<usize>;
fn seek(&mut self, position: u64) -> Result<u64>;
fn wait_for_file_size(&mut self, target_size: u64) -> ReaderGrowStatus;
}Required methods
fn position(&mut self) -> u64[src]
Expand description
Current position, in bytes, inside of a source.
fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]
Expand description
Pull some bytes from a source into the specified buffer, returning how many bytes were read.
fn seek(&mut self, position: u64) -> Result<u64>[src]
Expand description
Seek to an position, in bytes, from start of a source.
fn wait_for_file_size(&mut self, target_size: u64) -> ReaderGrowStatus[src]
Expand description
Wait until a source will be ready to read bytes to the specified position.
Implementors
Loading content...