mojo-flatbuffers¶
mojo-flatbuffers is a FlatBuffers serializer written in Mojo. The runtime and the code generator are Mojo. They do not wrap the C++ FlatBuffers library or flatcc.
-
Why FlatBuffers
What a table, a vtable, a struct, and a FlexBuffers value are, and which parts of the format this library implements.
-
Instructions
Install Mojo 1.1.0 with pixi, write a
.fbsschema, generate Mojo, run the tests, and publish this site. -
Examples
Build a buffer, read it without copying, unpack it into Mojo values, and encode a FlexBuffers map.
-
Techniques
How the builder, the vtable cache, and the two schema front ends work, and which ideas were kept or dropped.
-
Test data
What lives under
testdata/(schemas, binary schemas, and the bytes the tests compare) and why each file is there.