1// Code generated by the FlatBuffers compiler. DO NOT EDIT. 2 3package NamespaceA 4 5import ( 6 flatbuffers "github.com/google/flatbuffers/go" 7 8 NamespaceC "NamespaceC" 9) 10 11type SecondTableInA struct { 12 _tab flatbuffers.Table 13} 14 15func GetRootAsSecondTableInA(buf []byte, offset flatbuffers.UOffsetT) *SecondTableInA { 16 n := flatbuffers.GetUOffsetT(buf[offset:]) 17 x := &SecondTableInA{} 18 x.Init(buf, n+offset) 19 return x 20} 21 22func (rcv *SecondTableInA) Init(buf []byte, i flatbuffers.UOffsetT) { 23 rcv._tab.Bytes = buf 24 rcv._tab.Pos = i 25} 26 27func (rcv *SecondTableInA) Table() flatbuffers.Table { 28 return rcv._tab 29} 30 31func (rcv *SecondTableInA) ReferToC(obj *NamespaceC.TableInC) *NamespaceC.TableInC { 32 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 33 if o != 0 { 34 x := rcv._tab.Indirect(o + rcv._tab.Pos) 35 if obj == nil { 36 obj = new(NamespaceC.TableInC) 37 } 38 obj.Init(rcv._tab.Bytes, x) 39 return obj 40 } 41 return nil 42} 43 44func SecondTableInAStart(builder *flatbuffers.Builder) { 45 builder.StartObject(1) 46} 47func SecondTableInAAddReferToC(builder *flatbuffers.Builder, referToC flatbuffers.UOffsetT) { 48 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(referToC), 0) 49} 50func SecondTableInAEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 51 return builder.EndObject() 52} 53