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§
Implementors§
impl ImageReader for FileImages
Available on non-WebAssembly only.