Skip to content

BotChain-Robots/flatbuffers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flatbuffers

We use Google's Flatbuffers for serialization. The main benefit of Flatbuffers over other serialization libraries is that Flatbuffers is small and fast (it does not require an unpacking step).

This repository contains all the Flatbuffer definition files (.fbs). It should only contain definition files.

Unless there is a good reason to add fields to the middle of a schema, please only add new fields to the end of schema files (to help maintain backward compatibility).

Compiling

The schema definitions need to be compiled into code files for the languages we use.

The documentation for Flatbuffer's flatc tool can be found here.

The generated files should then be copied into the respective repositories. Flatbuffers offers backward and forward compatibility.

Installation

MacOS

Install flatc with homebrew

brew install flatbuffers

Generating

flatc --cpp <filename>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors