Struct exr::block::writer::SortedBlocksWriter
source · pub struct SortedBlocksWriter<'w, W> { /* private fields */ }
Expand description
Write blocks that appear in any order and reorder them before writing.
Implementations§
source§impl<'w, W> SortedBlocksWriter<'w, W>where
W: ChunksWriter,
impl<'w, W> SortedBlocksWriter<'w, W>where W: ChunksWriter,
sourcepub fn new(
meta_data: &MetaData,
chunk_writer: &'w mut W
) -> SortedBlocksWriter<'w, W>
pub fn new( meta_data: &MetaData, chunk_writer: &'w mut W ) -> SortedBlocksWriter<'w, W>
New sorting writer. Returns None
if sorting is not required.
sourcepub fn write_or_stash_chunk(
&mut self,
chunk_index_in_file: usize,
chunk_y_index: usize,
chunk: Chunk
) -> UnitResult
pub fn write_or_stash_chunk( &mut self, chunk_index_in_file: usize, chunk_y_index: usize, chunk: Chunk ) -> UnitResult
Write the chunk or stash it. In the closure, write all chunks that can be written now.
sourcepub fn inner_chunks_writer(&self) -> &W
pub fn inner_chunks_writer(&self) -> &W
Where the chunks will be written to.