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