ImageReader

Trait ImageReader 

Source
pub trait ImageReader {
    // Required method
    fn read_at(&mut self, file: usize, offset: u64, out: &mut [u8]) -> usize;
}
Expand description

Bytes of the files a cue sheet names: out.len() bytes of file file (its index in CueSheet::files) from offset; returns how many were read (fewer at the end of a file). A web page implements this over Blob.slice of the user’s file, or hands in a closure.

Required Methods§

Source

fn read_at(&mut self, file: usize, offset: u64, out: &mut [u8]) -> usize

Implementors§

Source§

impl ImageReader for FileImages

Available on non-WebAssembly only.
Source§

impl ImageReader for MemoryImages

Source§

impl<F: FnMut(usize, u64, &mut [u8]) -> usize> ImageReader for F