...

Text file src/github.com/google/flatbuffers/tests/TestMutatingBool.nim

Documentation: github.com/google/flatbuffers/tests

     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: 23.5.26
     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()

View as plain text