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

Golang capnproto2.NewCompositeList函数代码示例

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

本文整理汇总了Golang中zombiezen/com/go/capnproto2.NewCompositeList函数的典型用法代码示例。如果您正苦于以下问题:Golang NewCompositeList函数的具体用法?Golang NewCompositeList怎么用?Golang NewCompositeList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了NewCompositeList函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。

示例1: NewCallOrder_getCallSequence_Results_List

// NewCallOrder_getCallSequence_Results creates a new list of CallOrder_getCallSequence_Results.
func NewCallOrder_getCallSequence_Results_List(s *capnp.Segment, sz int32) (CallOrder_getCallSequence_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
	if err != nil {
		return CallOrder_getCallSequence_Results_List{}, err
	}
	return CallOrder_getCallSequence_Results_List{l}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:8,代码来源:test.capnp.go


示例2: NewAdder_add_Params_List

// NewAdder_add_Params creates a new list of Adder_add_Params.
func NewAdder_add_Params_List(s *capnp.Segment, sz int32) (Adder_add_Params_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
	if err != nil {
		return Adder_add_Params_List{}, err
	}
	return Adder_add_Params_List{l}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:8,代码来源:test.capnp.go


示例3: NewReplay_Round_List

// NewReplay_Round creates a new list of Replay_Round.
func NewReplay_Round_List(s *capnp.Segment, sz int32) (Replay_Round_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
	if err != nil {
		return Replay_Round_List{}, err
	}
	return Replay_Round_List{l}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:8,代码来源:botapi.capnp.go


示例4: NewBook_List

// NewBook creates a new list of Book.
func NewBook_List(s *capnp.Segment, sz int32) (Book_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
	if err != nil {
		return Book_List{}, err
	}
	return Book_List{l}, nil
}
开发者ID:startupit69,项目名称:go-capnproto2,代码行数:8,代码来源:books.capnp.go


示例5: NewRobot_List

// NewRobot creates a new list of Robot.
func NewRobot_List(s *capnp.Segment, sz int32) (Robot_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 0}, sz)
	if err != nil {
		return Robot_List{}, err
	}
	return Robot_List{l}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:8,代码来源:botapi.capnp.go


示例6: NewAi_takeTurn_Params_List

// NewAi_takeTurn_Params creates a new list of Ai_takeTurn_Params.
func NewAi_takeTurn_Params_List(s *capnp.Segment, sz int32) (Ai_takeTurn_Params_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
	if err != nil {
		return Ai_takeTurn_Params_List{}, err
	}
	return Ai_takeTurn_Params_List{l}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:8,代码来源:botapi.capnp.go


示例7: NewAiConnector_connect_Results_List

// NewAiConnector_connect_Results creates a new list of AiConnector_connect_Results.
func NewAiConnector_connect_Results_List(s *capnp.Segment, sz int32) (AiConnector_connect_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
	if err != nil {
		return AiConnector_connect_Results_List{}, err
	}
	return AiConnector_connect_Results_List{l}, nil
}
开发者ID:gophergala2016,项目名称:Gobots,代码行数:8,代码来源:botapi.capnp.go


示例8: NewCapnp2A_List

// NewCapnp2A creates a new list of Capnp2A.
func NewCapnp2A_List(s *capnp.Segment, sz int32) (Capnp2A_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 24, PointerCount: 2}, sz)
	if err != nil {
		return Capnp2A_List{}, err
	}
	return Capnp2A_List{l}, nil
}
开发者ID:FiloSottile,项目名称:go_serialization_benchmarks,代码行数:8,代码来源:structdef.capnp2.go


示例9: NewEchoer_echo_Results_List

// NewEchoer_echo_Results creates a new list of Echoer_echo_Results.
func NewEchoer_echo_Results_List(s *capnp.Segment, sz int32) (Echoer_echo_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
	if err != nil {
		return Echoer_echo_Results_List{}, err
	}
	return Echoer_echo_Results_List{l}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:8,代码来源:test.capnp.go


示例10: NewHandleFactory_newHandle_Params_List

// NewHandleFactory_newHandle_Params creates a new list of HandleFactory_newHandle_Params.
func NewHandleFactory_newHandle_Params_List(s *capnp.Segment, sz int32) (HandleFactory_newHandle_Params_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
	if err != nil {
		return HandleFactory_newHandle_Params_List{}, err
	}
	return HandleFactory_newHandle_Params_List{l}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:8,代码来源:test.capnp.go


示例11: NewHanger_hang_Results_List

// NewHanger_hang_Results creates a new list of Hanger_hang_Results.
func NewHanger_hang_Results_List(s *capnp.Segment, sz int32) (Hanger_hang_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
	if err != nil {
		return Hanger_hang_Results_List{}, err
	}
	return Hanger_hang_Results_List{l}, nil
}
开发者ID:hodduc,项目名称:go-capnproto2,代码行数:8,代码来源:test.capnp.go


示例12: NewAi_takeTurn_Results_List

// NewAi_takeTurn_Results creates a new list of Ai_takeTurn_Results.
func NewAi_takeTurn_Results_List(s *capnp.Segment, sz int32) (Ai_takeTurn_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
	return Ai_takeTurn_Results_List{l}, err
}
开发者ID:bcspragu,项目名称:Gobots,代码行数:5,代码来源:botapi.capnp.go


示例13: NewJsonValue_Call_List

// NewJsonValue_Call creates a new list of JsonValue_Call.
func NewJsonValue_Call_List(s *capnp.Segment, sz int32) (JsonValue_Call_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
	return JsonValue_Call_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:json.capnp.go


示例14: NewPingPong_echoNum_Results_List

// NewPingPong_echoNum_Results creates a new list of PingPong_echoNum_Results.
func NewPingPong_echoNum_Results_List(s *capnp.Segment, sz int32) (PingPong_echoNum_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
	return PingPong_echoNum_Results_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:test.capnp.go


示例15: NewEchoer_echo_Params_List

// NewEchoer_echo_Params creates a new list of Echoer_echo_Params.
func NewEchoer_echo_Params_List(s *capnp.Segment, sz int32) (Echoer_echo_Params_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
	return Echoer_echo_Params_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:test.capnp.go


示例16: NewCallOrder_getCallSequence_Params_List

// NewCallOrder_getCallSequence_Params creates a new list of CallOrder_getCallSequence_Params.
func NewCallOrder_getCallSequence_Params_List(s *capnp.Segment, sz int32) (CallOrder_getCallSequence_Params_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
	return CallOrder_getCallSequence_Params_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:test.capnp.go


示例17: NewHanger_hang_Params_List

// NewHanger_hang_Params creates a new list of Hanger_hang_Params.
func NewHanger_hang_Params_List(s *capnp.Segment, sz int32) (Hanger_hang_Params_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
	return Hanger_hang_Params_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:test.capnp.go


示例18: NewHandleFactory_newHandle_Results_List

// NewHandleFactory_newHandle_Results creates a new list of HandleFactory_newHandle_Results.
func NewHandleFactory_newHandle_Results_List(s *capnp.Segment, sz int32) (HandleFactory_newHandle_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
	return HandleFactory_newHandle_Results_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:test.capnp.go


示例19: NewAdder_add_Results_List

// NewAdder_add_Results creates a new list of Adder_add_Results.
func NewAdder_add_Results_List(s *capnp.Segment, sz int32) (Adder_add_Results_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
	return Adder_add_Results_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:test.capnp.go


示例20: NewVatId_List

// NewVatId creates a new list of VatId.
func NewVatId_List(s *capnp.Segment, sz int32) (VatId_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
	return VatId_List{l}, err
}
开发者ID:zombiezen,项目名称:go-capnproto2,代码行数:5,代码来源:rpc-twoparty.capnp.go



注:本文中的zombiezen/com/go/capnproto2.NewCompositeList函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Golang capnproto2.NewPipeline函数代码示例发布时间:2022-05-28
下一篇:
Golang capnproto2.NewCallOptions函数代码示例发布时间: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