Licensed under Apache V2 as the files are a derivative work of https://github.com/google/flatbuffers/tree/master/lua
This Go port exists for 3 reasons:
- upstream lua generator assumes 5.3 (relies on string.unpack/string.pack/integer) despite compatibiltiy shims. gopher-lua is 5.1+goto. So need the code to work with 64 bit integers while Lua 5.1 numbers are all float64
- their lua runtime library has some flaws, like encoding bool as ascii "0" or "1" instead of "\0" or "\1"
- last & definitely least, perf
There are currently some issues with flatc lua output, this fork should be used until those fixes are merged upstream
To properly support 64 byte integers, this library supports encoding UserData with Value of int64 or uint64