本文整理匯總了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)) }