FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
FlatBuffers is plus efficiente than Protocol Buffers
For further reference, please consider the following sections:
To create the classes install flatc compiler and:
- open terminal and go to project folder ./src/flatbuffers
- run flatc --java product.fbs each time you make any modifications in product.fbs and copy the Product.java generated to desired package (br.com.williamrocha.flatbuffer.fb).