本文整理汇总了Golang中zombiezen/com/go/capnproto2.NewRootStruct函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRootStruct函数的具体用法?Golang NewRootStruct怎么用?Golang NewRootStruct使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewRootStruct函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: NewRootHash_write_Params
func NewRootHash_write_Params(s *capnp.Segment) (Hash_write_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
if err != nil {
return Hash_write_Params{}, err
}
return Hash_write_Params{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:hash.capnp.go
示例2: NewRootBook
func NewRootBook(s *capnp.Segment) (Book, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
if err != nil {
return Book{}, err
}
return Book{st}, nil
}
开发者ID:startupit69,项目名称:go-capnproto2,代码行数:7,代码来源:books.capnp.go
示例3: NewRootHashFactory_newSha1_Results
func NewRootHashFactory_newSha1_Results(s *capnp.Segment) (HashFactory_newSha1_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
if err != nil {
return HashFactory_newSha1_Results{}, err
}
return HashFactory_newSha1_Results{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:hash.capnp.go
示例4: NewRootAiConnector_connect_Results
func NewRootAiConnector_connect_Results(s *capnp.Segment) (AiConnector_connect_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
if err != nil {
return AiConnector_connect_Results{}, err
}
return AiConnector_connect_Results{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例5: NewRootReplay_Round
func NewRootReplay_Round(s *capnp.Segment) (Replay_Round, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
if err != nil {
return Replay_Round{}, err
}
return Replay_Round{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例6: NewRootRobot
func NewRootRobot(s *capnp.Segment) (Robot, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 0})
if err != nil {
return Robot{}, err
}
return Robot{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例7: NewRootAi_takeTurn_Params
func NewRootAi_takeTurn_Params(s *capnp.Segment) (Ai_takeTurn_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
if err != nil {
return Ai_takeTurn_Params{}, err
}
return Ai_takeTurn_Params{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例8: NewRootCredentials
func NewRootCredentials(s *capnp.Segment) (Credentials, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
if err != nil {
return Credentials{}, err
}
return Credentials{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例9: NewRootCapnp2A
func NewRootCapnp2A(s *capnp.Segment) (Capnp2A, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 24, PointerCount: 2})
if err != nil {
return Capnp2A{}, err
}
return Capnp2A{st}, nil
}
开发者ID:FiloSottile,项目名称:go_serialization_benchmarks,代码行数:7,代码来源:structdef.capnp2.go
示例10: NewRootHandleFactory_newHandle_Params
func NewRootHandleFactory_newHandle_Params(s *capnp.Segment) (HandleFactory_newHandle_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
if err != nil {
return HandleFactory_newHandle_Params{}, err
}
return HandleFactory_newHandle_Params{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:test.capnp.go
示例11: NewRootTurn
func NewRootTurn(s *capnp.Segment) (Turn, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
if err != nil {
return Turn{}, err
}
return Turn{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例12: NewRootConnectRequest
func NewRootConnectRequest(s *capnp.Segment) (ConnectRequest, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
if err != nil {
return ConnectRequest{}, err
}
return ConnectRequest{st}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:7,代码来源:botapi.capnp.go
示例13: NewRootHanger_hang_Results
func NewRootHanger_hang_Results(s *capnp.Segment) (Hanger_hang_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
if err != nil {
return Hanger_hang_Results{}, err
}
return Hanger_hang_Results{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:test.capnp.go
示例14: NewRootAdder_add_Results
func NewRootAdder_add_Results(s *capnp.Segment) (Adder_add_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
if err != nil {
return Adder_add_Results{}, err
}
return Adder_add_Results{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:test.capnp.go
示例15: NewRootCallOrder_getCallSequence_Results
func NewRootCallOrder_getCallSequence_Results(s *capnp.Segment) (CallOrder_getCallSequence_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
if err != nil {
return CallOrder_getCallSequence_Results{}, err
}
return CallOrder_getCallSequence_Results{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:test.capnp.go
示例16: NewRootEchoer_echo_Results
func NewRootEchoer_echo_Results(s *capnp.Segment) (Echoer_echo_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
if err != nil {
return Echoer_echo_Results{}, err
}
return Echoer_echo_Results{st}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:7,代码来源:test.capnp.go
示例17: NewRootJsonValue
func NewRootJsonValue(s *capnp.Segment) (JsonValue, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
return JsonValue{st}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:4,代码来源:json.capnp.go
示例18: NewRootJsonValue_Call
func NewRootJsonValue_Call(s *capnp.Segment) (JsonValue_Call, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
return JsonValue_Call{st}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:4,代码来源:json.capnp.go
示例19: NewRootPingPong_echoNum_Results
func NewRootPingPong_echoNum_Results(s *capnp.Segment) (PingPong_echoNum_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
return PingPong_echoNum_Results{st}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:4,代码来源:test.capnp.go
示例20: NewRootEchoer_echo_Params
func NewRootEchoer_echo_Params(s *capnp.Segment) (Echoer_echo_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return Echoer_echo_Params{st}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:4,代码来源:test.capnp.go
注:本文中的zombiezen/com/go/capnproto2.NewRootStruct函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论