• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: 24.3.25
6
7  Declared by  :
8]#
9
10import Property as Property
11import flatbuffers
12import std/options
13
14type TestMutatingBool* = object of FlatObj
15func 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)))
19proc TestMutatingBoolStart*(builder: var Builder) =
20  builder.StartObject(1)
21proc TestMutatingBoolAddb*(builder: var Builder, b: uoffset) =
22  builder.PrependStructSlot(0, b, default(uoffset))
23proc TestMutatingBoolEnd*(builder: var Builder): uoffset =
24  return builder.EndObject()
25