aboutsummaryrefslogtreecommitdiff
path: root/python/tosa/CustomAttribute.py
diff options
context:
space:
mode:
authorTai Ly <tai.ly@arm.com>2023-07-03 22:14:05 +0000
committerTai Ly <tai.ly@arm.com>2023-07-18 21:00:58 +0000
commit89963aa8fad822ab7a6e1ff92f6b7b4ee0b9350c (patch)
tree123b51806c246b5c10fe20d2f90609d03d373b0c /python/tosa/CustomAttribute.py
parent0bc46e44e6501788c4661d1f03572c14ea2ecc89 (diff)
downloadserialization_lib-89963aa8fad822ab7a6e1ff92f6b7b4ee0b9350c.tar.gz
Update to use GenText
changed GenerateText to GenText, with reversed return polarity. updated flatbuffer to v23.5.26, and regenerated headers Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I7278dfe9c7b55b9afbe2329e3058b63a1cdce586
Diffstat (limited to 'python/tosa/CustomAttribute.py')
-rw-r--r--python/tosa/CustomAttribute.py41
1 files changed, 29 insertions, 12 deletions
diff --git a/python/tosa/CustomAttribute.py b/python/tosa/CustomAttribute.py
index 40d7e88..de81970 100644
--- a/python/tosa/CustomAttribute.py
+++ b/python/tosa/CustomAttribute.py
@@ -69,21 +69,38 @@ class CustomAttribute(object):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
return o == 0
-def CustomAttributeStart(builder): builder.StartObject(3)
+def CustomAttributeStart(builder):
+ builder.StartObject(3)
+
def Start(builder):
- return CustomAttributeStart(builder)
-def CustomAttributeAddIdentifier(builder, identifier): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(identifier), 0)
+ CustomAttributeStart(builder)
+
+def CustomAttributeAddIdentifier(builder, identifier):
+ builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(identifier), 0)
+
def AddIdentifier(builder, identifier):
- return CustomAttributeAddIdentifier(builder, identifier)
-def CustomAttributeAddConfig(builder, config): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(config), 0)
+ CustomAttributeAddIdentifier(builder, identifier)
+
+def CustomAttributeAddConfig(builder, config):
+ builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(config), 0)
+
def AddConfig(builder, config):
- return CustomAttributeAddConfig(builder, config)
-def CustomAttributeAddImplementationAttrs(builder, implementationAttrs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(implementationAttrs), 0)
+ CustomAttributeAddConfig(builder, config)
+
+def CustomAttributeAddImplementationAttrs(builder, implementationAttrs):
+ builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(implementationAttrs), 0)
+
def AddImplementationAttrs(builder, implementationAttrs):
- return CustomAttributeAddImplementationAttrs(builder, implementationAttrs)
-def CustomAttributeStartImplementationAttrsVector(builder, numElems): return builder.StartVector(1, numElems, 1)
-def StartImplementationAttrsVector(builder, numElems):
+ CustomAttributeAddImplementationAttrs(builder, implementationAttrs)
+
+def CustomAttributeStartImplementationAttrsVector(builder, numElems):
+ return builder.StartVector(1, numElems, 1)
+
+def StartImplementationAttrsVector(builder, numElems: int) -> int:
return CustomAttributeStartImplementationAttrsVector(builder, numElems)
-def CustomAttributeEnd(builder): return builder.EndObject()
+
+def CustomAttributeEnd(builder):
+ return builder.EndObject()
+
def End(builder):
- return CustomAttributeEnd(builder) \ No newline at end of file
+ return CustomAttributeEnd(builder)