Skip to content

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.

    Read Why FlatBuffers

  • Instructions


    Install Mojo 1.1.0 with pixi, write a .fbs schema, generate Mojo, run the tests, and publish this site.

    Open Instructions

  • Examples


    Build a buffer, read it without copying, unpack it into Mojo values, and encode a FlexBuffers map.

    See Examples

  • Techniques


    How the builder, the vtable cache, and the two schema front ends work, and which ideas were kept or dropped.

    Read Techniques

  • Test data


    What lives under testdata/ (schemas, binary schemas, and the bytes the tests compare) and why each file is there.

    Read Test data