pub fn write_twoda_to_vec(twoda: &TwoDa) -> Result<Vec<u8>, TwoDaBinaryError>
Serializes a binary 2DA to a byte vector.