Binary format

97 views
Skip to first unread message

mikkelfj

unread,
Jul 13, 2017, 9:47:54 AM7/13/17
to FlatBuffers
I did a very quick writeup of the FlatBuffers binary format. It is already document in Wouters FlatBuffers internals document, but in places there are implicit assumptions.
Also, the FlatCC verifier tool makes some hard rules that are not necessarily documented such that unions must only have a type field when the type is NONE.

In addition, Big Endian FlatBuffers and StreamBuffers are mentioned in passing.

This is a very rough document written in haste with lots of typos and lacking examples, but it wanted to get it down and refine on it later.

https://github.com/dvidelabs/flatcc/blob/master/doc/binary-format.md

Wouter van Oortmerssen

unread,
Jul 13, 2017, 11:38:19 AM7/13/17
to mikkelfj, FlatBuffers
Wow, looks very thorough, though haven't had time to review it in detail. I should link to it from my doc, just in case people want a different perspective.

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mikkelfj

unread,
Jul 13, 2017, 3:28:45 PM7/13/17
to FlatBuffers, mik...@dvide.com


On Thursday, July 13, 2017 at 5:38:19 PM UTC+2, Wouter van Oortmerssen wrote:
Wow, looks very thorough, though haven't had time to review it in detail. I should link to it from my doc, just in case people want a different perspective.
 
thanks - yes I think it would be good to share - could help with interop - added an overview section, example buffer and example use of type hashes.

agallego

unread,
Jul 13, 2017, 9:32:15 PM7/13/17
to FlatBuffers, mik...@dvide.com
Thanks for the doc! that was a good read. 

Wouter van Oortmerssen

unread,
Aug 7, 2017, 5:57:11 PM8/7/17
to agallego, FlatBuffers, mikkelfj
Added a link to this from my own format documentation:

(note that it links to the first header rather than the whole document to circumvent a bug in doxygen that doesn't link correctly to external .md files).

--

mikkelfj

unread,
Aug 8, 2017, 2:12:27 AM8/8/17
to FlatBuffers, galleg...@gmail.com, mik...@dvide.com
thanks
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages