Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
0cd8daf1
Commit
0cd8daf1
authored
Jul 16, 2018
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing Lua generated files
Change-Id: Id668ade474805dd9c7e108a478db3551d6a62b48
parent
79f2adc5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
222 additions
and
0 deletions
+222
-0
EnumInNestedNS.lua
...s/namespace_test/NamespaceA/NamespaceB/EnumInNestedNS.lua
+12
-0
StructInNestedNS.lua
...namespace_test/NamespaceA/NamespaceB/StructInNestedNS.lua
+32
-0
TableInNestedNS.lua
.../namespace_test/NamespaceA/NamespaceB/TableInNestedNS.lua
+36
-0
SecondTableInA.lua
tests/namespace_test/NamespaceA/SecondTableInA.lua
+38
-0
TableInFirstNS.lua
tests/namespace_test/NamespaceA/TableInFirstNS.lua
+56
-0
TableInC.lua
tests/namespace_test/NamespaceC/TableInC.lua
+48
-0
No files found.
tests/namespace_test/NamespaceA/NamespaceB/EnumInNestedNS.lua
0 → 100644
View file @
0cd8daf1
-- 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
tests/namespace_test/NamespaceA/NamespaceB/StructInNestedNS.lua
0 → 100644
View file @
0cd8daf1
-- 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
tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.lua
0 → 100644
View file @
0cd8daf1
-- 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
tests/namespace_test/NamespaceA/SecondTableInA.lua
0 → 100644
View file @
0cd8daf1
-- 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
tests/namespace_test/NamespaceA/TableInFirstNS.lua
0 → 100644
View file @
0cd8daf1
-- 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
tests/namespace_test/NamespaceC/TableInC.lua
0 → 100644
View file @
0cd8daf1
-- 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment