pub fn write( source: &impl Serialize, typ: BlockType, writer: &mut impl Write, headers: Option<&Headers>, include_checksum: bool, ) -> Result<()>