1// automatically generated by the FlatBuffers compiler, do not modify 2 3package NamespaceB 4 5import ( 6 flatbuffers "github.com/google/flatbuffers/go" 7) 8 9type TableInNestedNS struct { 10 _tab flatbuffers.Table 11} 12 13func GetRootAsTableInNestedNS(buf []byte, offset flatbuffers.UOffsetT) *TableInNestedNS { 14 n := flatbuffers.GetUOffsetT(buf[offset:]) 15 x := &TableInNestedNS{} 16 x.Init(buf, n+offset) 17 return x 18} 19 20func (rcv *TableInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) { 21 rcv._tab.Bytes = buf 22 rcv._tab.Pos = i 23} 24 25func (rcv *TableInNestedNS) Table() flatbuffers.Table { 26 return rcv._tab 27} 28 29func (rcv *TableInNestedNS) Foo() int32 { 30 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 31 if o != 0 { 32 return rcv._tab.GetInt32(o + rcv._tab.Pos) 33 } 34 return 0 35} 36 37func (rcv *TableInNestedNS) MutateFoo(n int32) bool { 38 return rcv._tab.MutateInt32Slot(4, n) 39} 40 41func TableInNestedNSStart(builder *flatbuffers.Builder) { 42 builder.StartObject(1) 43} 44func TableInNestedNSAddFoo(builder *flatbuffers.Builder, foo int32) { 45 builder.PrependInt32Slot(0, foo, 0) 46} 47func TableInNestedNSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 48 return builder.EndObject() 49} 50