Does it suppot UINT64?
I saw in the "descriptor.lua" that there were TYPE_UINT64 and CPPTYPE_UINT64 in the file.
Now i define a uint64 field named id in a .proto file and gen a _pb.lua file. How can i use the filed? I write a testcase: print(type(xxx.id)) the result is still "number". Lua's number is a double value. It can't hold a uint64 variable.
I just reviewed the code for this, and indeed it does not support the xx64 types. The current implementation will only pass the lower ~48 bits of the integer as a fixed64, and the lower 32bit of the the integer when using zigzag encoding. Perhaps depend on something like https://gist.github.com/stevedonovan/6146474
@krestenkrab
that's the problem of lua.
I think I will fix it when lua 5.3 released.
http://www.lua.org/work/doc/
support for integers (64-bit by default)