1-- automatically generated by the FlatBuffers compiler, do not modify 2 3-- namespace: NamespaceB 4 5local flatbuffers = require('flatbuffers') 6 7local StructInNestedNS = {} -- the module 8local StructInNestedNS_mt = {} -- the class metatable 9 10function StructInNestedNS.New() 11 local o = {} 12 setmetatable(o, {__index = StructInNestedNS_mt}) 13 return o 14end 15function StructInNestedNS_mt:Init(buf, pos) 16 self.view = flatbuffers.view.New(buf, pos) 17end 18function StructInNestedNS_mt:A() 19 return self.view:Get(flatbuffers.N.Int32, self.view.pos + 0) 20end 21function StructInNestedNS_mt:B() 22 return self.view:Get(flatbuffers.N.Int32, self.view.pos + 4) 23end 24function StructInNestedNS.CreateStructInNestedNS(builder, a, b) 25 builder:Prep(4, 8) 26 builder:PrependInt32(b) 27 builder:PrependInt32(a) 28 return builder:Offset() 29end 30 31return StructInNestedNS -- return the module