本文整理汇总了Golang中golang.org/x/mobile/bind/seq.Buffer.WriteGoRef方法的典型用法代码示例。如果您正苦于以下问题:Golang Buffer.WriteGoRef方法的具体用法?Golang Buffer.WriteGoRef怎么用?Golang Buffer.WriteGoRef使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类golang.org/x/mobile/bind/seq.Buffer
的用法示例。
在下文中一共展示了Buffer.WriteGoRef方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: proxy_CallS
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: proxy_NewS
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: proxy_NewNode
func proxy_NewNode(out, in *seq.Buffer) {
param_name := in.ReadString()
res := testpkg.NewNode(param_name)
out.WriteGoRef(res)
}
示例4: proxy_NewI
func proxy_NewI(out, in *seq.Buffer) {
res := testpkg.NewI()
out.WriteGoRef(res)
}
示例5: proxyIS
func proxyIS(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(testpkg.I)
res := v.S()
out.WriteGoRef(res)
}
示例6: var_getStructVar
func var_getStructVar(out, in *seq.Buffer) {
out.WriteGoRef(testpkg.StructVar)
}
示例7: var_getInterfaceVar
func var_getInterfaceVar(out, in *seq.Buffer) {
out.WriteGoRef(testpkg.InterfaceVar)
}
示例8: proxyStructThatStartsWithLetterBeforeZ_Value_Get
func proxyStructThatStartsWithLetterBeforeZ_Value_Get(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*testpkg.StructThatStartsWithLetterBeforeZ).Value
out.WriteGoRef(v)
}