func ProcessUnionInfo(ui *gi.UnionInfo) { name := ui.Name() printf("type %s struct {\n", name) printf("\t_data [%d]byte\n", ui.Size()) printf("}\n") for i, n := 0, ui.NumMethod(); i < n; i++ { meth := ui.Method(i) if IsMethodBlacklisted(name, meth.Name()) { continue } ProcessFunctionInfo(meth, gi.ToBaseInfo(ui)) } }
func (this *binding_generator) process_union_info(ui *gi.UnionInfo) { p := printer_to(&this.go_bindings) name := ui.Name() p("type %s struct {\n", name) p("\t_data [%d]byte\n", ui.Size()) p("}\n") for i, n := 0, ui.NumMethod(); i < n; i++ { meth := ui.Method(i) if config.is_method_blacklisted(name, meth.Name()) { continue } this.process_function_info(meth) } }