Personwithout using vector?
Personand keep appending to the file?
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=DEBUG
builder.Clear()and reusing it.
flatcfor this use case, maybe by writing a plugin for it?
flatcis able to write out a binary version of a parsed schema.. using FlatBuffers itself! This data is perfect for writing external code generators. You can easily read this data in any language that FlatBuffers already supports. The option is
--bfbsI believe, and the schema for the data is in
reflection/.. see also some github issues where we talk more about using this for external code generators @dbaileychess
I'm trying to generate the cpp headers from the sample
flatc appears to be unhappy.
$ flatc -c ./monster.fbs /snap/flatbuffers/1575/bin/flatc: error: unable to load file: ./monster.fbs
Wonder what went wrong here and if anyone has any insight.
My flatc version:
$ flatc --version flatc version 2.0.0
[463739.735595] audit: type=1400 audit(1670075554.123:456): apparmor="DENIED" operation="open" profile="snap.flatbuffers.flatc" name="<snipped>/monster.fbs" pid=3149615 comm="flatc" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000