pub fn write_section(
    buffer: &mut Vec<u8>,
    section: &Section
) -> Result<(), Box<dyn Error + Sync + Send>>