pub fn write_erf_to_vec(erf: &Erf) -> Result<Vec<u8>, ErfBinaryError>
Serializes an ERF/MOD/HAK archive to bytes.