forked from BigfootDev/flatbuffers
[Python] Commit some orphan python genfile diffs. (#6325)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user