An open API service indexing awesome lists of open source software.

https://github.com/edwindj/flatbuffers.v


https://github.com/edwindj/flatbuffers.v

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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