pub fn write_mdl_to_vec(mdl: &Mdl) -> Result<Vec<u8>, MdlError>
Writes an MDL file structure to a byte vector.