Beispiel #1
0
func proxy_CallV(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.CallV(param_i)
	out.WriteInt(res)
}
Beispiel #2
0
func proxyIVE(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(testpkg.I)
	res, err := v.VE()
	out.WriteInt(res)
	if err == nil {
		out.WriteUTF16("")
	} else {
		out.WriteUTF16(err.Error())
	}
}
Beispiel #3
0
func proxy_CallVE(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, err := testpkg.CallVE(param_i)
	out.WriteInt(res)
	if err == nil {
		out.WriteUTF16("")
	} else {
		out.WriteUTF16(err.Error())
	}
}
Beispiel #4
0
func proxy_CollectS(out, in *seq.Buffer) {
	param_want := in.ReadInt()
	param_timeoutSec := in.ReadInt()
	res := testpkg.CollectS(param_want, param_timeoutSec)
	out.WriteInt(res)
}
Beispiel #5
0
func proxy_NumSCollected(out, in *seq.Buffer) {
	res := testpkg.NumSCollected()
	out.WriteInt(res)
}
Beispiel #6
0
func proxyIV(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(testpkg.I)
	res := v.V()
	out.WriteInt(res)
}
Beispiel #7
0
func proxy_Add(out, in *seq.Buffer) {
	param_x := in.ReadInt()
	param_y := in.ReadInt()
	res := testpkg.Add(param_x, param_y)
	out.WriteInt(res)
}
Beispiel #8
0
func var_getIntVar(out, in *seq.Buffer) {
	out.WriteInt(testpkg.IntVar)
}