mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 08:12:26 +00:00
[Python] Commit some orphan python genfile diffs. (#6325)
This commit is contained in:
@@ -10,7 +10,7 @@ class ArrayTable(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsArrayTable(cls, buf, offset):
|
def GetRootAsArrayTable(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = ArrayTable()
|
x = ArrayTable()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class Monster(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsMonster(cls, buf, offset):
|
def GetRootAsMonster(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = Monster()
|
x = Monster()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class Referrable(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsReferrable(cls, buf, offset):
|
def GetRootAsReferrable(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = Referrable()
|
x = Referrable()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class Stat(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsStat(cls, buf, offset):
|
def GetRootAsStat(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = Stat()
|
x = Stat()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class TestSimpleTableWithEnum(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsTestSimpleTableWithEnum(cls, buf, offset):
|
def GetRootAsTestSimpleTableWithEnum(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = TestSimpleTableWithEnum()
|
x = TestSimpleTableWithEnum()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class TypeAliases(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsTypeAliases(cls, buf, offset):
|
def GetRootAsTypeAliases(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = TypeAliases()
|
x = TypeAliases()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class Monster(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsMonster(cls, buf, offset):
|
def GetRootAsMonster(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = Monster()
|
x = Monster()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class InParentNamespace(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsInParentNamespace(cls, buf, offset):
|
def GetRootAsInParentNamespace(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = InParentNamespace()
|
x = InParentNamespace()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class MonsterExtra(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsMonsterExtra(cls, buf, offset):
|
def GetRootAsMonsterExtra(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = MonsterExtra()
|
x = MonsterExtra()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class TableInNestedNS(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsTableInNestedNS(cls, buf, offset):
|
def GetRootAsTableInNestedNS(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = TableInNestedNS()
|
x = TableInNestedNS()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class SecondTableInA(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsSecondTableInA(cls, buf, offset):
|
def GetRootAsSecondTableInA(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = SecondTableInA()
|
x = SecondTableInA()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class TableInFirstNS(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsTableInFirstNS(cls, buf, offset):
|
def GetRootAsTableInFirstNS(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = TableInFirstNS()
|
x = TableInFirstNS()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class TableInC(object):
|
|||||||
__slots__ = ['_tab']
|
__slots__ = ['_tab']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def GetRootAsTableInC(cls, buf, offset):
|
def GetRootAsTableInC(cls, buf, offset=0):
|
||||||
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
||||||
x = TableInC()
|
x = TableInC()
|
||||||
x.Init(buf, n + offset)
|
x.Init(buf, n + offset)
|
||||||
|
|||||||
Reference in New Issue
Block a user