pub(crate) fn write_validating_to_buffered(write: &mut impl Write, headers: &[Header], pedantic: bool) -> Result<Requirements> {
        // pedantic validation to not allow slightly invalid files
        // that still could be read correctly in theory
        let minimal_requirements = Self::validate(headers, pedantic)?;

        magic_number::write(write)?;
        minimal_requirements.write(write)?;
        Header::write_all(headers, write, minimal_requirements.has_multiple_layers)?;
        Ok(minimal_requirements)
    }
/// Validates the meta data and writes it to the stream.
/// If pedantic, throws errors for files that may produce errors in other exr readers.
/// Returns the automatically detected minimum requirement flags.
Validates the meta data and writes it to the stream.
If pedantic, throws errors for files that may produce errors in other exr readers.
Returns the automatically detected minimum requirement flags.
Validates the meta data and writes it to the stream . If pedantic throws errors for files that may produce errors in other exr readers . Returns the automatically detected minimum requirement flags .
pub(crate) fn write_validating_to_buffered(write: &mut impl Write, headers: &[Header], pedantic: bool) -> Result<Requirements> {
        // pedantic validation to not allow slightly invalid files
        // that still could be read correctly in theory
        let minimal_requirements = Self::validate(headers, pedantic)?;
        magic_number::write(write)?;
        minimal_requirements.write(write)?;
        Header::write_all(headers, write, minimal_requirements.has_multiple_layers)?;
        Ok(minimal_requirements)
    }
pub ( crate ) fn write_validating_to_buffered ( write : & mut impl Write , headers : & [ Header ] , pedantic : bool ) -> Result < Requirements > { // pedantic validation to not allow slightly invalid files // that still could be read correctly in theory let minimal_requirements = Self :: validate ( headers , pedantic ) ? ; magic_number :: write ( write ) ? ; minimal_requirements . write ( write ) ? ; Header :: write_all ( headers , write , minimal_requirements . has_multiple_layers ) ? ; Ok ( minimal_requirements ) }
Validates the meta data and writes it to the stream.
Validates the meta data and writes it to the stream .
write
&mut impl Write
headers
&[Header]
pedantic
bool
write
&mut impl Write
headers
&[Header]
pedantic
bool