Missing Lua generated files

Change-Id: Id668ade474805dd9c7e108a478db3551d6a62b48
parent 79f2adc5
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceB
local EnumInNestedNS = {
A = 0,
B = 1,
C = 2,
}
return EnumInNestedNS -- return the module
\ No newline at end of file
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceB
local flatbuffers = require('flatbuffers')
local StructInNestedNS = {} -- the module
local StructInNestedNS_mt = {} -- the class metatable
function StructInNestedNS.New()
local o = {}
setmetatable(o, {__index = StructInNestedNS_mt})
return o
end
function StructInNestedNS_mt:Init(buf, pos)
self.view = flatbuffers.view.New(buf, pos)
end
function StructInNestedNS_mt:A()
return self.view:Get(flatbuffers.N.Int32, self.view.pos + 0)
end
function StructInNestedNS_mt:B()
return self.view:Get(flatbuffers.N.Int32, self.view.pos + 4)
end
function StructInNestedNS.CreateStructInNestedNS(builder, a, b)
builder:Prep(4, 8)
builder:PrependInt32(b)
builder:PrependInt32(a)
return builder:Offset()
end
return StructInNestedNS -- return the module
\ No newline at end of file
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceB
local flatbuffers = require('flatbuffers')
local TableInNestedNS = {} -- the module
local TableInNestedNS_mt = {} -- the class metatable
function TableInNestedNS.New()
local o = {}
setmetatable(o, {__index = TableInNestedNS_mt})
return o
end
function TableInNestedNS.GetRootAsTableInNestedNS(buf, offset)
local n = flatbuffers.N.UOffsetT:Unpack(buf, offset)
local o = TableInNestedNS.New()
o:Init(buf, n + offset)
return o
end
function TableInNestedNS_mt:Init(buf, pos)
self.view = flatbuffers.view.New(buf, pos)
end
function TableInNestedNS_mt:Foo()
local o = self.view:Offset(4)
if o ~= 0 then
return self.view:Get(flatbuffers.N.Int32, o + self.view.pos)
end
return 0
end
function TableInNestedNS.Start(builder) builder:StartObject(1) end
function TableInNestedNS.AddFoo(builder, foo) builder:PrependInt32Slot(0, foo, 0) end
function TableInNestedNS.End(builder) return builder:EndObject() end
return TableInNestedNS -- return the module
\ No newline at end of file
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceA
local flatbuffers = require('flatbuffers')
local SecondTableInA = {} -- the module
local SecondTableInA_mt = {} -- the class metatable
function SecondTableInA.New()
local o = {}
setmetatable(o, {__index = SecondTableInA_mt})
return o
end
function SecondTableInA.GetRootAsSecondTableInA(buf, offset)
local n = flatbuffers.N.UOffsetT:Unpack(buf, offset)
local o = SecondTableInA.New()
o:Init(buf, n + offset)
return o
end
function SecondTableInA_mt:Init(buf, pos)
self.view = flatbuffers.view.New(buf, pos)
end
function SecondTableInA_mt:ReferToC()
local o = self.view:Offset(4)
if o ~= 0 then
local x = self.view:Indirect(o + self.view.pos)
local obj = require('NamespaceC.TableInC').New()
obj:Init(self.view.bytes, x)
return obj
end
end
function SecondTableInA.Start(builder) builder:StartObject(1) end
function SecondTableInA.AddReferToC(builder, referToC) builder:PrependUOffsetTRelativeSlot(0, referToC, 0) end
function SecondTableInA.End(builder) return builder:EndObject() end
return SecondTableInA -- return the module
\ No newline at end of file
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceA
local flatbuffers = require('flatbuffers')
local TableInFirstNS = {} -- the module
local TableInFirstNS_mt = {} -- the class metatable
function TableInFirstNS.New()
local o = {}
setmetatable(o, {__index = TableInFirstNS_mt})
return o
end
function TableInFirstNS.GetRootAsTableInFirstNS(buf, offset)
local n = flatbuffers.N.UOffsetT:Unpack(buf, offset)
local o = TableInFirstNS.New()
o:Init(buf, n + offset)
return o
end
function TableInFirstNS_mt:Init(buf, pos)
self.view = flatbuffers.view.New(buf, pos)
end
function TableInFirstNS_mt:FooTable()
local o = self.view:Offset(4)
if o ~= 0 then
local x = self.view:Indirect(o + self.view.pos)
local obj = require('NamespaceA.NamespaceB.TableInNestedNS').New()
obj:Init(self.view.bytes, x)
return obj
end
end
function TableInFirstNS_mt:FooEnum()
local o = self.view:Offset(6)
if o ~= 0 then
return self.view:Get(flatbuffers.N.Int8, o + self.view.pos)
end
return 0
end
function TableInFirstNS_mt:FooStruct()
local o = self.view:Offset(8)
if o ~= 0 then
local x = o + self.view.pos
local obj = require('NamespaceA.NamespaceB.StructInNestedNS').New()
obj:Init(self.view.bytes, x)
return obj
end
end
function TableInFirstNS.Start(builder) builder:StartObject(3) end
function TableInFirstNS.AddFooTable(builder, fooTable) builder:PrependUOffsetTRelativeSlot(0, fooTable, 0) end
function TableInFirstNS.AddFooEnum(builder, fooEnum) builder:PrependInt8Slot(1, fooEnum, 0) end
function TableInFirstNS.AddFooStruct(builder, fooStruct) builder:PrependStructSlot(2, fooStruct, 0) end
function TableInFirstNS.End(builder) return builder:EndObject() end
return TableInFirstNS -- return the module
\ No newline at end of file
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceC
local flatbuffers = require('flatbuffers')
local TableInC = {} -- the module
local TableInC_mt = {} -- the class metatable
function TableInC.New()
local o = {}
setmetatable(o, {__index = TableInC_mt})
return o
end
function TableInC.GetRootAsTableInC(buf, offset)
local n = flatbuffers.N.UOffsetT:Unpack(buf, offset)
local o = TableInC.New()
o:Init(buf, n + offset)
return o
end
function TableInC_mt:Init(buf, pos)
self.view = flatbuffers.view.New(buf, pos)
end
function TableInC_mt:ReferToA1()
local o = self.view:Offset(4)
if o ~= 0 then
local x = self.view:Indirect(o + self.view.pos)
local obj = require('NamespaceA.TableInFirstNS').New()
obj:Init(self.view.bytes, x)
return obj
end
end
function TableInC_mt:ReferToA2()
local o = self.view:Offset(6)
if o ~= 0 then
local x = self.view:Indirect(o + self.view.pos)
local obj = require('NamespaceA.SecondTableInA').New()
obj:Init(self.view.bytes, x)
return obj
end
end
function TableInC.Start(builder) builder:StartObject(2) end
function TableInC.AddReferToA1(builder, referToA1) builder:PrependUOffsetTRelativeSlot(0, referToA1, 0) end
function TableInC.AddReferToA2(builder, referToA2) builder:PrependUOffsetTRelativeSlot(1, referToA2, 0) end
function TableInC.End(builder) return builder:EndObject() end
return TableInC -- return the module
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment