Function exr::block::writer::write_chunks_with
source ยท pub fn write_chunks_with<W: Write + Seek>(
buffered_write: W,
headers: Headers,
pedantic: bool,
write_chunks: impl FnOnce(MetaData, &mut ChunkWriter<W>) -> UnitResult,
) -> UnitResult
Expand description
Write an exr file by writing one chunk after another in a closure. In the closure, you are provided a chunk writer, which should be used to write all the chunks. Assumes the your write destination is buffered.