示例#1
0
文件: go_testpkg.go 项目: Miaque/mojo
func proxy_CallS(out, in *seq.Buffer) {
	var param_i testpkg.I
	param_i_ref := in.ReadRef()
	if param_i_ref.Num < 0 { // go object
		param_i = param_i_ref.Get().(testpkg.I)
	} else { // foreign object
		param_i = (*proxyI)(param_i_ref)
	}
	res := testpkg.CallS(param_i)
	out.WriteGoRef(res)
}
示例#2
0
func proxy_NewS(out, in *seq.Buffer) {
	param_x := in.ReadFloat64()
	param_y := in.ReadFloat64()
	res := testpkg.NewS(param_x, param_y)
	out.WriteGoRef(res)
}
示例#3
0
func proxy_NewNode(out, in *seq.Buffer) {
	param_name := in.ReadString()
	res := testpkg.NewNode(param_name)
	out.WriteGoRef(res)
}
示例#4
0
func proxy_NewI(out, in *seq.Buffer) {
	res := testpkg.NewI()
	out.WriteGoRef(res)
}
示例#5
0
文件: go_testpkg.go 项目: Miaque/mojo
func proxyIS(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(testpkg.I)
	res := v.S()
	out.WriteGoRef(res)
}
示例#6
0
func var_getStructVar(out, in *seq.Buffer) {
	out.WriteGoRef(testpkg.StructVar)
}
示例#7
0
func var_getInterfaceVar(out, in *seq.Buffer) {
	out.WriteGoRef(testpkg.InterfaceVar)
}
示例#8
0
func proxyStructThatStartsWithLetterBeforeZ_Value_Get(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(*testpkg.StructThatStartsWithLetterBeforeZ).Value
	out.WriteGoRef(v)
}