James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame^] | 1 | #[ TestMutatingBool |
| 2 | Automatically generated by the FlatBuffers compiler, do not modify. |
| 3 | Or modify. I'm a message, not a cop. |
| 4 | |
| 5 | flatc version: 22.10.26 |
| 6 | |
| 7 | Declared by : |
| 8 | ]# |
| 9 | |
| 10 | import Property as Property |
| 11 | import flatbuffers |
| 12 | import std/options |
| 13 | |
| 14 | type TestMutatingBool* = object of FlatObj |
| 15 | func b*(self: TestMutatingBool): Option[Property.Property] = |
| 16 | let o = self.tab.Offset(4) |
| 17 | if o != 0: |
| 18 | return some(Property.Property(tab: Vtable(Bytes: self.tab.Bytes, Pos: self.tab.Pos + o))) |
| 19 | proc TestMutatingBoolStart*(builder: var Builder) = |
| 20 | builder.StartObject(1) |
| 21 | proc TestMutatingBoolAddb*(builder: var Builder, b: uoffset) = |
| 22 | builder.PrependStructSlot(0, b, default(uoffset)) |
| 23 | proc TestMutatingBoolEnd*(builder: var Builder): uoffset = |
| 24 | return builder.EndObject() |