pub fn write_tga_to_vec(tga: &Tga) -> Result<Vec<u8>, TgaBinaryError>
Serializes TGA data into a byte vector.