pub fn write_fac_to_vec(fac: &Fac) -> Result<Vec<u8>, FacError>
Serializes typed FAC data into a byte vector.