本文整理汇总了Golang中golang.org/x/mobile/bind/seq.Buffer.ReadString方法的典型用法代码示例。如果您正苦于以下问题:Golang Buffer.ReadString方法的具体用法?Golang Buffer.ReadString怎么用?Golang Buffer.ReadString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类golang.org/x/mobile/bind/seq.Buffer
的用法示例。
在下文中一共展示了Buffer.ReadString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: proxyS_TryTwoStrings
func proxyS_TryTwoStrings(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*testpkg.S)
param_first := in.ReadString()
param_second := in.ReadString()
res := v.TryTwoStrings(param_first, param_second)
out.WriteString(res)
}
示例2: proxyI_StringError
func proxyI_StringError(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(testpkg.I)
param_s := in.ReadString()
res, err := v.StringError(param_s)
out.WriteString(res)
if err == nil {
out.WriteString("")
} else {
out.WriteString(err.Error())
}
}
示例3: proxy_CallIStringError
func proxy_CallIStringError(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)
}
param_s := in.ReadString()
res, err := testpkg.CallIStringError(param_i, param_s)
out.WriteString(res)
if err == nil {
out.WriteString("")
} else {
out.WriteString(err.Error())
}
}
示例4: proxy_Hello
func proxy_Hello(out, in *seq.Buffer) {
param_s := in.ReadString()
res := testpkg.Hello(param_s)
out.WriteString(res)
}
示例5: proxyNode_V_Set
func proxyNode_V_Set(out, in *seq.Buffer) {
ref := in.ReadRef()
v := in.ReadString()
ref.Get().(*testpkg.Node).V = v
}
示例6: proxy_NewNode
func proxy_NewNode(out, in *seq.Buffer) {
param_name := in.ReadString()
res := testpkg.NewNode(param_name)
out.WriteGoRef(res)
}
示例7: var_setStringVar
func var_setStringVar(out, in *seq.Buffer) {
v := in.ReadString()
testpkg.StringVar = v
}