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


Golang Message.RootPtr方法代碼示例

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


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

示例1: ReadRootCapnp2A

func ReadRootCapnp2A(msg *capnp.Message) (Capnp2A, error) {
	root, err := msg.RootPtr()
	if err != nil {
		return Capnp2A{}, err
	}
	return Capnp2A{root.Struct()}, nil
}
開發者ID:alecthomas,項目名稱:go_serialization_benchmarks,代碼行數:7,代碼來源:structdef.capnp2.go

示例2: ReadRootJoinResult

func ReadRootJoinResult(msg *capnp.Message) (JoinResult, error) {
	root, err := msg.RootPtr()
	return JoinResult{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:rpc-twoparty.capnp.go

示例3: ReadRootThirdPartyCapId

func ReadRootThirdPartyCapId(msg *capnp.Message) (ThirdPartyCapId, error) {
	root, err := msg.RootPtr()
	return ThirdPartyCapId{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:rpc-twoparty.capnp.go

示例4: ReadRootConnectRequest

func ReadRootConnectRequest(msg *capnp.Message) (ConnectRequest, error) {
	root, err := msg.RootPtr()
	return ConnectRequest{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例5: ReadRootPingPong_echoNum_Results

func ReadRootPingPong_echoNum_Results(msg *capnp.Message) (PingPong_echoNum_Results, error) {
	root, err := msg.RootPtr()
	return PingPong_echoNum_Results{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:test.capnp.go

示例6: ReadRootCallOrder_getCallSequence_Results

func ReadRootCallOrder_getCallSequence_Results(msg *capnp.Message) (CallOrder_getCallSequence_Results, error) {
	root, err := msg.RootPtr()
	return CallOrder_getCallSequence_Results{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:test.capnp.go

示例7: ReadRootHandleFactory_newHandle_Results

func ReadRootHandleFactory_newHandle_Results(msg *capnp.Message) (HandleFactory_newHandle_Results, error) {
	root, err := msg.RootPtr()
	return HandleFactory_newHandle_Results{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:test.capnp.go

示例8: ReadRootHashFactory_newSha1_Params

func ReadRootHashFactory_newSha1_Params(msg *capnp.Message) (HashFactory_newSha1_Params, error) {
	root, err := msg.RootPtr()
	return HashFactory_newSha1_Params{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:hash.capnp.go

示例9: ReadRootReplay_Round

func ReadRootReplay_Round(msg *capnp.Message) (Replay_Round, error) {
	root, err := msg.RootPtr()
	return Replay_Round{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例10: ReadRootRobot

func ReadRootRobot(msg *capnp.Message) (Robot, error) {
	root, err := msg.RootPtr()
	return Robot{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例11: ReadRootAiConnector_connect_Results

func ReadRootAiConnector_connect_Results(msg *capnp.Message) (AiConnector_connect_Results, error) {
	root, err := msg.RootPtr()
	return AiConnector_connect_Results{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例12: ReadRootInitialBoard

func ReadRootInitialBoard(msg *capnp.Message) (InitialBoard, error) {
	root, err := msg.RootPtr()
	return InitialBoard{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例13: ReadRootAi_takeTurn_Results

func ReadRootAi_takeTurn_Results(msg *capnp.Message) (Ai_takeTurn_Results, error) {
	root, err := msg.RootPtr()
	return Ai_takeTurn_Results{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例14: ReadRootCredentials

func ReadRootCredentials(msg *capnp.Message) (Credentials, error) {
	root, err := msg.RootPtr()
	return Credentials{root.Struct()}, err
}
開發者ID:bcspragu,項目名稱:Gobots,代碼行數:4,代碼來源:botapi.capnp.go

示例15: ReadRootVatId

func ReadRootVatId(msg *capnp.Message) (VatId, error) {
	root, err := msg.RootPtr()
	return VatId{root.Struct()}, err
}
開發者ID:zombiezen,項目名稱:go-capnproto2,代碼行數:4,代碼來源:rpc-twoparty.capnp.go


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