Xavier Wang
                                            Xavier Wang
                                        
                                    额……功能实现不着急啊……比如你现在的实现就漏了好几个地方,而且有些地方的接口是和空message共用的不能这么简单加。现在应该先讨论下接口到底怎么设计的问题。如果你只是自用,那么这样对你而言应该问题不大~
this behavior is on purpose. Someone may use `require "protoc":load [[...]]` to load a protobuf schema into `pb` module. But that is only permitted in demo usage. Because in this...
Yes, but this example means the Phone/Person tables are anchored to Lua memory and can not collect i.e. the memory leak. and it prevent you hotfix the message (you can...
You could just concat two bytes to merge: ```lua local a = pb.encode(...) local b = pb.encode(...) local result = a .. b ```
> In my project, I am using a lua implement instead, but that is also inefficient. We're using this, too. And it works perfect. It's may not be fatter to...
You could read the documents. And read into test.lua (the test case) for actual usage example.
可以讨论下看看有什么比较好的方案
This is intentional for now. Because to create tables for empty sub message may decrease the performance. If this is really needed, I can add a option to enable this...
This is a history issue. The module is written in the time of protobuf 2.0, at that time the sub message has not default empty value. But the semantic is...
I just add a new option "decode_default_message" to support decode the empty but with default values sub messages. You could try the master HEAD for see whether it fit your...