Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/MyGame/Example/ArrayTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ArrayTable(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsArrayTable(cls, buf, offset):
def GetRootAsArrayTable(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = ArrayTable()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Monster.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Monster(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsMonster(cls, buf, offset):
def GetRootAsMonster(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Monster()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Referrable.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Referrable(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsReferrable(cls, buf, offset):
def GetRootAsReferrable(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Referrable()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Stat(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsStat(cls, buf, offset):
def GetRootAsStat(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Stat()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/TestSimpleTableWithEnum.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestSimpleTableWithEnum(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsTestSimpleTableWithEnum(cls, buf, offset):
def GetRootAsTestSimpleTableWithEnum(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = TestSimpleTableWithEnum()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/TypeAliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TypeAliases(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsTypeAliases(cls, buf, offset):
def GetRootAsTypeAliases(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = TypeAliases()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example2/Monster.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Monster(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsMonster(cls, buf, offset):
def GetRootAsMonster(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Monster()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/InParentNamespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class InParentNamespace(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsInParentNamespace(cls, buf, offset):
def GetRootAsInParentNamespace(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = InParentNamespace()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/MonsterExtra.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MonsterExtra(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsMonsterExtra(cls, buf, offset):
def GetRootAsMonsterExtra(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = MonsterExtra()
x.Init(buf, n + offset)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TableInNestedNS(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsTableInNestedNS(cls, buf, offset):
def GetRootAsTableInNestedNS(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = TableInNestedNS()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/namespace_test/NamespaceA/SecondTableInA.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SecondTableInA(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsSecondTableInA(cls, buf, offset):
def GetRootAsSecondTableInA(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = SecondTableInA()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/namespace_test/NamespaceA/TableInFirstNS.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TableInFirstNS(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsTableInFirstNS(cls, buf, offset):
def GetRootAsTableInFirstNS(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = TableInFirstNS()
x.Init(buf, n + offset)
Expand Down
2 changes: 1 addition & 1 deletion tests/namespace_test/NamespaceC/TableInC.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TableInC(object):
__slots__ = ['_tab']

@classmethod
def GetRootAsTableInC(cls, buf, offset):
def GetRootAsTableInC(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = TableInC()
x.Init(buf, n + offset)
Expand Down