pub fn write_dds_to_vec(dds: &Dds) -> Result<Vec<u8>, DdsBinaryError>
Serializes DDS data to a byte vector.