FlatBuffer上手体验
安装flatc
- 下载github源代码 https://google.github.io/flatbuffers/
- 本地编译安装
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make
sudo make install
# 验证安装compiler成功
(base) liang@liang-MacBookPro:~/liang/om/flatbuffers-master$ flatc --version
flatc version 1.11.0
编写schema
譬如C++ 数据结构如下
class Point
{
float x;
float y;
};
class Node


3859

被折叠的 条评论
为什么被折叠?



