本文整理汇总了Golang中github.com/jmckaskill/go-capnproto.Segment类的典型用法代码示例。如果您正苦于以下问题:Golang Segment类的具体用法?Golang Segment怎么用?Golang Segment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Segment类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: NewEnumerantList
func NewEnumerantList(s *C.Segment, sz int) Enumerant_List {
return Enumerant_List(s.NewCompositeList(8, 2, sz))
}
示例2: NewRootCodeGeneratorRequestRequestedFile
func NewRootCodeGeneratorRequestRequestedFile(s *C.Segment) CodeGeneratorRequestRequestedFile {
return CodeGeneratorRequestRequestedFile(s.NewRootStruct(8, 2))
}
示例3: ReadRootCodeGeneratorRequestRequestedFileImport
func ReadRootCodeGeneratorRequestRequestedFileImport(s *C.Segment) CodeGeneratorRequestRequestedFileImport {
return CodeGeneratorRequestRequestedFileImport(s.Root(0).ToStruct())
}
示例4: NewElementSizeList
func NewElementSizeList(s *C.Segment, sz int) ElementSize_List {
return ElementSize_List(s.NewUInt16List(sz))
}
示例5: ReadRootCodeGeneratorRequest
func ReadRootCodeGeneratorRequest(s *C.Segment) CodeGeneratorRequest {
return CodeGeneratorRequest(s.Root(0).ToStruct())
}
示例6: NewValueList
func NewValueList(s *C.Segment, sz int) Value_List { return Value_List(s.NewCompositeList(16, 1, sz)) }
示例7: ReadRootAnnotation
func ReadRootAnnotation(s *C.Segment) Annotation { return Annotation(s.Root(0).ToStruct()) }
示例8: NewMethodParamList
func NewMethodParamList(s *C.Segment, sz int) MethodParam_List {
return MethodParam_List(s.NewCompositeList(0, 4, sz))
}
示例9: NewNode
func NewNode(s *C.Segment) Node { return Node(s.NewStruct(40, 5)) }
示例10: NewRootMethodParam
func NewRootMethodParam(s *C.Segment) MethodParam { return MethodParam(s.NewRootStruct(0, 4)) }
示例11: ReadRootMethodParam
func ReadRootMethodParam(s *C.Segment) MethodParam { return MethodParam(s.Root(0).ToStruct()) }
示例12: NewMethodList
func NewMethodList(s *C.Segment, sz int) Method_List { return Method_List(s.NewCompositeList(8, 4, sz)) }
示例13: NewRootMethod
func NewRootMethod(s *C.Segment) Method { return Method(s.NewRootStruct(8, 4)) }
示例14: NewMethod
func NewMethod(s *C.Segment) Method { return Method(s.NewStruct(8, 4)) }
示例15: NewRootValue
func NewRootValue(s *C.Segment) Value { return Value(s.NewRootStruct(16, 1)) }