lua-flatbuffers
a work-in-progress Lua 5.3 library for reading FlatBuffers
开发计划:
目前官方已经有了非反射版的Lua库,我自己也暂时不使用flatbuffers了,暂停开发
- buffer.read: 检查buffer边界范围
- 去掉对string元表的修改
- 写FlatBuffers
- 完善测试
- 完善文档
- 直接解析schema文件, 不再依赖flatc编译schema到bfbs或json
TODO
- parse schema, do not depend flatc to compile schema to bfbs/json
- flatbuffers write support
Quick start
os.execute 'flatc --binary --schema test.fb'
FlatBuffersSchema = FlatBuffers.bfbs('test.bfbs')
your_message_as_a_lua_table = FlatBuffersSchema:decode('a buffer encode a message in FlatBuffers format')