1// automatically generated by the FlatBuffers compiler, do not modify 2 3package NamespaceA 4 5import ( 6 flatbuffers "github.com/google/flatbuffers/go" 7) 8type TableInC struct { 9 _tab flatbuffers.Table 10} 11 12func (rcv *TableInC) Init(buf []byte, i flatbuffers.UOffsetT) { 13 rcv._tab.Bytes = buf 14 rcv._tab.Pos = i 15} 16 17func (rcv *TableInC) ReferToA1(obj *TableInFirstNS) *TableInFirstNS { 18 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 19 if o != 0 { 20 x := rcv._tab.Indirect(o + rcv._tab.Pos) 21 if obj == nil { 22 obj = new(TableInFirstNS) 23 } 24 obj.Init(rcv._tab.Bytes, x) 25 return obj 26 } 27 return nil 28} 29 30func (rcv *TableInC) ReferToA2(obj *SecondTableInA) *SecondTableInA { 31 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 32 if o != 0 { 33 x := rcv._tab.Indirect(o + rcv._tab.Pos) 34 if obj == nil { 35 obj = new(SecondTableInA) 36 } 37 obj.Init(rcv._tab.Bytes, x) 38 return obj 39 } 40 return nil 41} 42 43func TableInCStart(builder *flatbuffers.Builder) { builder.StartObject(2) } 44func TableInCAddReferToA1(builder *flatbuffers.Builder, referToA1 flatbuffers.UOffsetT) { builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(referToA1), 0) } 45func TableInCAddReferToA2(builder *flatbuffers.Builder, referToA2 flatbuffers.UOffsetT) { builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(referToA2), 0) } 46func TableInCEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { return builder.EndObject() } 47