pub fn serialize_function( func: &Function, buf: &mut Vec<u8>, stb: &mut StringTableBuilder, ) -> Result<(), SemaError>