• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#[ MyGame.OtherNameSpace.TableB
2  Automatically generated by the FlatBuffers compiler, do not modify.
3  Or modify. I'm a message, not a cop.
4
5  flatc version: 25.1.24
6
7  Declared by  :
8  Rooting type : MyGame.Example.Monster ()
9]#
10
11import ../../TableA as TableA
12import flatbuffers
13import std/options
14
15type TableB* = object of FlatObj
16func a*(self: TableB): Option[TableA.TableA] =
17  let o = self.tab.Offset(4)
18  if o != 0:
19    return some(TableA.TableA(tab: Vtable(Bytes: self.tab.Bytes, Pos: self.tab.Pos + o)))
20proc TableBstart*(builder: var Builder) =
21  builder.StartObject(1)
22proc TableBadda*(builder: var Builder, a: uoffset) =
23  builder.PrependStructSlot(0, a, default(uoffset))
24proc TableBend*(builder: var Builder): uoffset =
25  return builder.EndObject()
26