...
1
2
3 package MyGame
4
5 import (
6 flatbuffers "github.com/google/flatbuffers/go"
7 )
8
9 type InParentNamespaceT struct {
10 }
11
12 func (t *InParentNamespaceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
13 if t == nil {
14 return 0
15 }
16 InParentNamespaceStart(builder)
17 return InParentNamespaceEnd(builder)
18 }
19
20 func (rcv *InParentNamespace) UnPackTo(t *InParentNamespaceT) {
21 }
22
23 func (rcv *InParentNamespace) UnPack() *InParentNamespaceT {
24 if rcv == nil {
25 return nil
26 }
27 t := &InParentNamespaceT{}
28 rcv.UnPackTo(t)
29 return t
30 }
31
32 type InParentNamespace struct {
33 _tab flatbuffers.Table
34 }
35
36 func GetRootAsInParentNamespace(buf []byte, offset flatbuffers.UOffsetT) *InParentNamespace {
37 n := flatbuffers.GetUOffsetT(buf[offset:])
38 x := &InParentNamespace{}
39 x.Init(buf, n+offset)
40 return x
41 }
42
43 func FinishInParentNamespaceBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
44 builder.Finish(offset)
45 }
46
47 func GetSizePrefixedRootAsInParentNamespace(buf []byte, offset flatbuffers.UOffsetT) *InParentNamespace {
48 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])
49 x := &InParentNamespace{}
50 x.Init(buf, n+offset+flatbuffers.SizeUint32)
51 return x
52 }
53
54 func FinishSizePrefixedInParentNamespaceBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
55 builder.FinishSizePrefixed(offset)
56 }
57
58 func (rcv *InParentNamespace) Init(buf []byte, i flatbuffers.UOffsetT) {
59 rcv._tab.Bytes = buf
60 rcv._tab.Pos = i
61 }
62
63 func (rcv *InParentNamespace) Table() flatbuffers.Table {
64 return rcv._tab
65 }
66
67 func InParentNamespaceStart(builder *flatbuffers.Builder) {
68 builder.StartObject(0)
69 }
70 func InParentNamespaceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
71 return builder.EndObject()
72 }
73
View as plain text