Xavier Wang
                                            Xavier Wang
                                        
                                    I have tried the DLL build on Windows. Could you give me a segfaul example? the test.Lua seems work. ```shell gcc -o amoeba.dll -mdll -DLUA_BUILD_AS_DLL .\lua_amoeba.c -LC:\Devel\Lua54\lib -llua54 ```
It should be **/*.lua I'll make a documents for this.
I've been committed a refactoring version of `pb.glob()` with the simplified code. Please check it out and try to find whether it fits the description and your needs.
我感觉ParseFromString有问题,得到的是二进制数据,你没取长度会在0的地方截断
to check with official protoc implement, the "optional oneof name" is "_field", so change name to fit it.
Unfortunately it may difficult to do. The optional in proto3 is just a syntax sugar of single field oneof, and there is no way to distinguish it with single field...
你试试最新的master的版本,我这边是OK的: ```lua local pb = require "pb" local slice = require "pb.slice" local buffer = require "pb.buffer" local protoc = require "protoc" local serpent = require "serpent" local parser =...
这种肯定是直接报error的,没别的处理方法。lua-pb的设计是尽量不做检查,以提高性能。
这个好像不太容易,因为如果要实现这个特性,需要考虑在赋值以后再设置默认值。这一点其实可以考虑一下,有pr最好啦,不过我自己目前没什么时间做这个。
you could use hooks to manipulate the google well-known types yourself.