Patrik Gustavsson | 8f1f9aa | 2021-06-28 07:41:58 +0200 | [diff] [blame] | 1 | # automatically generated by the FlatBuffers compiler, do not modify |
| 2 | |
| 3 | # namespace: tosa |
| 4 | |
| 5 | import flatbuffers |
| 6 | |
| 7 | class ArithmeticRightShiftAttribute(object): |
| 8 | __slots__ = ['_tab'] |
| 9 | |
| 10 | @classmethod |
| 11 | def GetRootAsArithmeticRightShiftAttribute(cls, buf, offset): |
| 12 | n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) |
| 13 | x = ArithmeticRightShiftAttribute() |
| 14 | x.Init(buf, n + offset) |
| 15 | return x |
| 16 | |
| 17 | # ArithmeticRightShiftAttribute |
| 18 | def Init(self, buf, pos): |
| 19 | self._tab = flatbuffers.table.Table(buf, pos) |
| 20 | |
| 21 | # ArithmeticRightShiftAttribute |
| 22 | def Round(self): |
| 23 | o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) |
| 24 | if o != 0: |
| 25 | return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) |
| 26 | return False |
| 27 | |
| 28 | def ArithmeticRightShiftAttributeStart(builder): builder.StartObject(1) |
| 29 | def ArithmeticRightShiftAttributeAddRound(builder, round): builder.PrependBoolSlot(0, round, 0) |
| 30 | def ArithmeticRightShiftAttributeEnd(builder): return builder.EndObject() |