pub struct Mmap<T: Type> { /* private fields */ }
Expand description
Memory-mapped image data
Implementations§
source§impl<T: Type> Mmap<T>
impl<T: Type> Mmap<T>
sourcepub fn write_header<C: Color>(
file: impl Write,
meta: &Meta<T, C>
) -> Result<(), Error>
pub fn write_header<C: Color>( file: impl Write, meta: &Meta<T, C> ) -> Result<(), Error>
Write header to file
sourcepub fn create<C: Color>(
filename: impl AsRef<Path>,
meta: &Meta<T, C>
) -> Result<Self, Error>
pub fn create<C: Color>( filename: impl AsRef<Path>, meta: &Meta<T, C> ) -> Result<Self, Error>
Create new Mmap
on disk
sourcepub fn create_image<C: Color>(
filename: impl AsRef<Path>,
meta: &Meta<T, C>
) -> Result<Image<T, C>, Error>
pub fn create_image<C: Color>( filename: impl AsRef<Path>, meta: &Meta<T, C> ) -> Result<Image<T, C>, Error>
Create new image on disk
sourcepub fn read_header<C: Color>(file: impl Read) -> Result<Meta<T, C>, Error>
pub fn read_header<C: Color>(file: impl Read) -> Result<Meta<T, C>, Error>
Read header from file on disk