pub trait TiffSource: Send + Sync {
// Required methods
fn len(&self) -> u64;
fn read_exact_at(&self, offset: u64, len: usize) -> Result<Vec<u8>>;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn as_slice(&self) -> Option<&[u8]> { ... }
}Expand description
Random-access byte source for TIFF decoding.