by Hristo Iliev                    |                     Published on 2024-04-23                     
                     categ

What is FlatBuffers?

submited by
Style Pass
2024-04-24 09:30:04

by Hristo Iliev | Published on 2024-04-23 category C / C++

FlatBuffers is a serialization library developed by Google and similar to Protobuf. In this article, I will talk a bit more about them and also a bit more about binary serialization approaches.

Not so long ago I talked about binary vs. JSON serialization approaches. In summary when you need to save data for later reading or you need to send data for another application you will need to serialize your favorite programming language objects or functional structs of data. The problem is that you “cannot” store the in-memory objects in a file in the same way they are stored in the memory.

Well here is where FlatBuffers comes into play. FlatBuffers is a serialization and deserialization library that actually stores and loads objects in the same way they are stored in memory. The library has its own schema language that allows for code generation for quite a few other languages.

Leave a Comment
Related Posts