1// Code generated by the FlatBuffers compiler. DO NOT EDIT. 2 3package NamespaceB 4 5import ( 6 flatbuffers "github.com/google/flatbuffers/go" 7) 8 9type StructInNestedNS struct { 10 _tab flatbuffers.Struct 11} 12 13func (rcv *StructInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) { 14 rcv._tab.Bytes = buf 15 rcv._tab.Pos = i 16} 17 18func (rcv *StructInNestedNS) Table() flatbuffers.Table { 19 return rcv._tab.Table 20} 21 22func (rcv *StructInNestedNS) A() int32 { 23 return rcv._tab.GetInt32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) 24} 25func (rcv *StructInNestedNS) MutateA(n int32) bool { 26 return rcv._tab.MutateInt32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) 27} 28 29func (rcv *StructInNestedNS) B() int32 { 30 return rcv._tab.GetInt32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) 31} 32func (rcv *StructInNestedNS) MutateB(n int32) bool { 33 return rcv._tab.MutateInt32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) 34} 35 36func CreateStructInNestedNS(builder *flatbuffers.Builder, a int32, b int32) flatbuffers.UOffsetT { 37 builder.Prep(4, 8) 38 builder.PrependInt32(b) 39 builder.PrependInt32(a) 40 return builder.Offset() 41} 42