...

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

Documentation: github.com/google/flatbuffers/tests

     1#[ Property
     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 flatbuffers
    11
    12type Property* = object of FlatObj
    13func property*(self: Property): bool =
    14  return Get[bool](self.tab, self.tab.Pos + 0)
    15func `property=`*(self: var Property, n: bool): bool =
    16  return self.tab.Mutate(self.tab.Pos + 0, n)
    17proc PropertyCreate*(self: var Builder, property: bool): uoffset =
    18  self.Prep(1, 1)
    19  self.Prepend(property)
    20  return self.Offset()

View as plain text