pub fn write_header_versioned( w: &mut impl Write, magic: &[u8; 4], version: u8, ) -> Result<()>
Writes a file header with an explicit version byte.