本文整理匯總了Golang中github.com/c-darwin/mobile/bind/seq.Buffer.ReadInt32方法的典型用法代碼示例。如果您正苦於以下問題:Golang Buffer.ReadInt32方法的具體用法?Golang Buffer.ReadInt32怎麽用?Golang Buffer.ReadInt32使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/c-darwin/mobile/bind/seq.Buffer
的用法示例。
在下文中一共展示了Buffer.ReadInt32方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: proxyI_Times
func proxyI_Times(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(testpkg.I)
param_v := in.ReadInt32()
res := v.Times(param_v)
out.WriteInt64(res)
}
示例2: proxy_RegisterI
func proxy_RegisterI(out, in *seq.Buffer) {
param_idx := in.ReadInt32()
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)
}
testpkg.RegisterI(param_idx, param_i)
}
示例3: proxy_UnregisterI
func proxy_UnregisterI(out, in *seq.Buffer) {
param_idx := in.ReadInt32()
testpkg.UnregisterI(param_idx)
}
示例4: proxy_Multiply
func proxy_Multiply(out, in *seq.Buffer) {
param_idx := in.ReadInt32()
param_val := in.ReadInt32()
res := testpkg.Multiply(param_idx, param_val)
out.WriteInt64(res)
}
示例5: proxy_Int
func proxy_Int(out, in *seq.Buffer) {
param_x := in.ReadInt32()
testpkg.Int(param_x)
}