• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Golang capnproto2.NewRootStruct函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Golang capnproto2.NewStruct函数代码示例发布时间:2022-05-28
下一篇:
Golang capnproto2.NewPipeline函数代码示例发布时间:2022-05-28
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap