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
e9202d85
Commit
e9202d85
authored
Aug 12, 2015
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing Python files from type cast commit.
Change-Id: I800119d8fe19f4c3e95772aba629ef8b2deb9e4b
parent
9a1ab500
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Any.py
tests/MyGame/Example/Any.py
+1
-0
TestSimpleTableWithEnum.py
tests/MyGame/Example/TestSimpleTableWithEnum.py
+23
-0
No files found.
tests/MyGame/Example/Any.py
View file @
e9202d85
...
...
@@ -5,4 +5,5 @@
class
Any
(
object
):
NONE
=
0
Monster
=
1
TestSimpleTableWithEnum
=
2
tests/MyGame/Example/TestSimpleTableWithEnum.py
0 → 100644
View file @
e9202d85
# automatically generated, do not modify
# namespace: Example
import
flatbuffers
class
TestSimpleTableWithEnum
(
object
):
__slots__
=
[
'_tab'
]
# TestSimpleTableWithEnum
def
Init
(
self
,
buf
,
pos
):
self
.
_tab
=
flatbuffers
.
table
.
Table
(
buf
,
pos
)
# TestSimpleTableWithEnum
def
Color
(
self
):
o
=
flatbuffers
.
number_types
.
UOffsetTFlags
.
py_type
(
self
.
_tab
.
Offset
(
4
))
if
o
!=
0
:
return
self
.
_tab
.
Get
(
flatbuffers
.
number_types
.
Int8Flags
,
o
+
self
.
_tab
.
Pos
)
return
2
def
TestSimpleTableWithEnumStart
(
builder
):
builder
.
StartObject
(
1
)
def
TestSimpleTableWithEnumAddColor
(
builder
,
color
):
builder
.
PrependInt8Slot
(
0
,
color
,
2
)
def
TestSimpleTableWithEnumEnd
(
builder
):
return
builder
.
EndObject
()
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