本文整理匯總了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
}
示例2: ReadRootJoinResult
func ReadRootJoinResult(msg *capnp.Message) (JoinResult, error) {
root, err := msg.RootPtr()
return JoinResult{root.Struct()}, err
}
示例3: ReadRootThirdPartyCapId
func ReadRootThirdPartyCapId(msg *capnp.Message) (ThirdPartyCapId, error) {
root, err := msg.RootPtr()
return ThirdPartyCapId{root.Struct()}, err
}
示例4: ReadRootConnectRequest
func ReadRootConnectRequest(msg *capnp.Message) (ConnectRequest, error) {
root, err := msg.RootPtr()
return ConnectRequest{root.Struct()}, err
}
示例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
}
示例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
}
示例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
}
示例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
}
示例9: ReadRootReplay_Round
func ReadRootReplay_Round(msg *capnp.Message) (Replay_Round, error) {
root, err := msg.RootPtr()
return Replay_Round{root.Struct()}, err
}
示例10: ReadRootRobot
func ReadRootRobot(msg *capnp.Message) (Robot, error) {
root, err := msg.RootPtr()
return Robot{root.Struct()}, err
}
示例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
}
示例12: ReadRootInitialBoard
func ReadRootInitialBoard(msg *capnp.Message) (InitialBoard, error) {
root, err := msg.RootPtr()
return InitialBoard{root.Struct()}, err
}
示例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
}
示例14: ReadRootCredentials
func ReadRootCredentials(msg *capnp.Message) (Credentials, error) {
root, err := msg.RootPtr()
return Credentials{root.Struct()}, err
}
示例15: ReadRootVatId
func ReadRootVatId(msg *capnp.Message) (VatId, error) {
root, err := msg.RootPtr()
return VatId{root.Struct()}, err
}