protobuf-lua
protobuf-lua copied to clipboard
Lua library for Google's Protocol Buffers
MSVC does not have the `endian.h` header. But, if we assume little-endian encoding for most Windows set-ups, the conversion functions from that header are not necessary.
Addresses the issue #12. I had already merged with #10 at the time of fixing #12, so the PR contains #10 as well.
1. The imports of .proto-definitions which are not in the same directory as the current .proto-file are not supported in the current version. For example, .proto-imports like `import 'myproject/foo/bar/baz.proto';` translate...
if ((b & 0x80) == 0) => if ((s->p[i-1] & 0x80) == 0) the error: while (i != count) { int b = s->p[i] & 0x7F; n |= (uint64_t)b p...
I am trying to parse a Caffe [model](https://github.com/BVLC/caffe/blob/master/src/caffe/proto/caffe.proto). I am getting an error related to _FieldSkipper: ``` /sequoia/data2/kantorov/wigwam_sequoia_gpu101_105/.wigwam/prefix/bin/luajit: ...01_105/.wigwam/prefix/share/lua/5.1/protobuf/decoder.lua:333: attempt to call a nil value stack traceback: ...01_105/.wigwam/prefix/share/lua/5.1/protobuf/decoder.lua:333: in function...
```protobuf // issue.proto syntax = "proto2"; message Qux { optional uint32 waldo = 1; } message Bar { optional Qux qux = 1; } message Foo { optional Bar bar...
When trying with Lua 5.2 gives the error: `/torch/install/share/lua/5.2/protobuf/wire_format.lua:21: attempt to call global 'module' (a nil value)` I guess the module keyword is removed in Lua 5.2
Hi, I got this error; ``` /Users/user/torch/install/bin/luajit: /Users/user/torch/install/share/lua/5.1/protobuf/decoder.lua:297: Truncated message. stack traceback: [C]: in function 'error' /Users/fmg/torch/install/share/lua/5.1/protobuf/decoder.lua:297: in function 'SkipField' /Users/fmg/torch/install/share/lua/5.1/protobuf/init.lua:672: in function '_internal_parse' /Users/fmg/torch/install/share/lua/5.1/protobuf/init.lua:687: in function 'merge_from_string' /Users/fmg/torch/install/share/lua/5.1/protobuf/init.lua:696: in...
I report one bug for enum auto generate in protoc-gen-lua script. proto file: message RegisterReq { enum CmdId { CMD_ID = 1; } optional ...... } example: module.REGISTERREQ_CMDID_CMD_ID_ENUM = protobuf.EnumValueDescriptor()...
Hi all, I have an LMDB which is created in python. Each record is a protobuffer message. I am trying to decode the messages by doing this: `key,value=cursor:get() local record...