fn write(self, file:&mut dyn Write) -> Result<(), ::std::io::Error> {
		file.write_all(&(self.data.len() as u32).to_be_bytes())?;
		file.write_all(&self.typ)?;
		file.write_all(&self.data)?;
		file.write_all(&(calculate_crc(self.typ.iter().chain(self.data.iter()))).to_be_bytes())?;
		Ok(())
	}
/// Writes a PNG chunk to a data stream
Writes a PNG chunk to a data stream
Writes a PNG chunk to a data stream
fn write(self, file:&mut dyn Write) -> Result<(), ::std::io::Error> {
		file.write_all(&(self.data.len() as u32).to_be_bytes())?;
		file.write_all(&self.typ)?;
		file.write_all(&self.data)?;
		file.write_all(&(calculate_crc(self.typ.iter().chain(self.data.iter()))).to_be_bytes())?;
		Ok(())
	}
fn write ( self , file : & mut dyn Write ) -> Result < ( ) , :: std :: io :: Error > { file . write_all ( & ( self . data . len ( ) as u32 ) . to_be_bytes ( ) ) ? ; file . write_all ( & self . typ ) ? ; file . write_all ( & self . data ) ? ; file . write_all ( & ( calculate_crc ( self . typ . iter ( ) . chain ( self . data . iter ( ) ) ) ) . to_be_bytes ( ) ) ? ; Ok ( ( ) ) }
Writes a PNG chunk to a data stream
Writes a PNG chunk to a data stream
self
file
&mut dyn Write