pub fn write_utd_to_vec(utd: &Utd) -> Result<Vec<u8>, UtdError>
Serializes typed UTD data into a byte vector.