flatbuffers for v (early work)
vlatbuffers?
Status
- Parser (and scanner) voor framebuffers schema works: creates a
Schema
struct Schema
can generate:- framebuffers schema file: fbs
- v structs that match with the flatbuffers definition
Not yet working (most important part...)
- encoding
- decoding
Simple approach:
- encoder for v structs (similar to json encoder)
- decoder to v structs (similar to json decoder)
- encoder for v structs could generate fbs, framebuffers schema
- generate a decoder and encoder from a fbs file into v source. Would be nice if generated source has no dependencies
references
- https://google.github.io/flatbuffers/
- schema language: https://google.github.io/flatbuffers/flatbuffers_grammar.html
- description of binary format: https://github.com/dvidelabs/flatcc/blob/master/doc/binary-format.md