本文整理汇总了Golang中golang.org/x/mobile/bind/seq.Buffer.WriteUTF16方法的典型用法代码示例。如果您正苦于以下问题:Golang Buffer.WriteUTF16方法的具体用法?Golang Buffer.WriteUTF16怎么用?Golang Buffer.WriteUTF16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类golang.org/x/mobile/bind/seq.Buffer
的用法示例。
在下文中一共展示了Buffer.WriteUTF16方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: proxy_StopClientProxy
func proxy_StopClientProxy(out, in *seq.Buffer) {
err := flashlight.StopClientProxy()
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
示例2: proxy_Err
func proxy_Err(out, in *seq.Buffer) {
param_s := in.ReadUTF16()
err := testpkg.Err(param_s)
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
示例3: proxy_RunClientProxy
func proxy_RunClientProxy(out, in *seq.Buffer) {
param_listenAddr := in.ReadUTF16()
err := flashlight.RunClientProxy(param_listenAddr)
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
示例4: proxyIE
func proxyIE(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(testpkg.I)
err := v.E()
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
示例5: proxy_CallE
func proxy_CallE(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)
}
err := testpkg.CallE(param_i)
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
示例6: encodeString
func encodeString(out *seq.Buffer, v string) {
out.WriteUTF16(v)
}
示例7: proxy_StrDup
func proxy_StrDup(out, in *seq.Buffer) {
param_s := in.ReadUTF16()
res := testpkg.StrDup(param_s)
out.WriteUTF16(res)
}
示例8: proxySString
func proxySString(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*testpkg.S)
res := v.String()
out.WriteUTF16(res)
}
示例9: proxy_Hello
func proxy_Hello(out, in *seq.Buffer) {
param_name := in.ReadUTF16()
res := hi.Hello(param_name)
out.WriteUTF16(res)
}