當前位置: 首頁>>代碼示例>>Golang>>正文


Golang Buffer.ReadRef方法代碼示例

本文整理匯總了Golang中github.com/c-darwin/mobile/bind/seq.Buffer.ReadRef方法的典型用法代碼示例。如果您正苦於以下問題:Golang Buffer.ReadRef方法的具體用法?Golang Buffer.ReadRef怎麽用?Golang Buffer.ReadRef使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在github.com/c-darwin/mobile/bind/seq.Buffer的用法示例。


在下文中一共展示了Buffer.ReadRef方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: proxy_CallSSum

func proxy_CallSSum(out, in *seq.Buffer) {
	// Must be a Go object
	param_s_ref := in.ReadRef()
	param_s := param_s_ref.Get().(*testpkg.S)
	res := testpkg.CallSSum(param_s)
	out.WriteFloat64(res)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:7,代碼來源:go_testpkg.go

示例2: 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)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:7,代碼來源:go_testpkg.go

示例3: 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)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:8,代碼來源:go_testpkg.go

示例4: proxyNode_Err_Get

func proxyNode_Err_Get(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(*testpkg.Node).Err
	if v == nil {
		out.WriteString("")
	} else {
		out.WriteString(v.Error())
	}
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:9,代碼來源:go_testpkg.go

示例5: proxyI_Error

func proxyI_Error(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(testpkg.I)
	param_triggerError := in.ReadBool()
	err := v.Error(param_triggerError)
	if err == nil {
		out.WriteString("")
	} else {
		out.WriteString(err.Error())
	}
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:11,代碼來源:go_testpkg.go

示例6: 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)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:11,代碼來源:go_testpkg.go

示例7: proxy_CallIError

func proxy_CallIError(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_triggerError := in.ReadBool()
	err := testpkg.CallIError(param_i, param_triggerError)
	if err == nil {
		out.WriteString("")
	} else {
		out.WriteString(err.Error())
	}
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:16,代碼來源:go_testpkg.go

示例8: proxyS_Sum

func proxyS_Sum(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(*testpkg.S)
	res := v.Sum()
	out.WriteFloat64(res)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:6,代碼來源:go_testpkg.go

示例9: proxyS_Y_Get

func proxyS_Y_Get(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(*testpkg.S).Y
	out.WriteFloat64(v)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:5,代碼來源:go_testpkg.go

示例10: proxyS_Y_Set

func proxyS_Y_Set(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := in.ReadFloat64()
	ref.Get().(*testpkg.S).Y = v
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:5,代碼來源:go_testpkg.go

示例11: proxyNode_Err_Set

func proxyNode_Err_Set(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := in.ReadError()
	ref.Get().(*testpkg.Node).Err = v
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:5,代碼來源:go_testpkg.go

示例12: proxyNode_V_Get

func proxyNode_V_Get(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := ref.Get().(*testpkg.Node).V
	out.WriteString(v)
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:5,代碼來源:go_testpkg.go

示例13: proxyNode_V_Set

func proxyNode_V_Set(out, in *seq.Buffer) {
	ref := in.ReadRef()
	v := in.ReadString()
	ref.Get().(*testpkg.Node).V = v
}
開發者ID:andreinechaev,項目名稱:mobile,代碼行數:5,代碼來源:go_testpkg.go


注:本文中的github.com/c-darwin/mobile/bind/seq.Buffer.ReadRef方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。