lua-bson
lua-bson copied to clipboard
A BSON library for lua
报错:Invalid utf8 string,不知道对lua里使用的字符串格式有什么要求?
[相关代码](https://github.com/cloudwu/lua-bson/blob/master/bson.c#L316-L325) `lua_rawlen`可能返回在 hashpart 部分的 integer key,从而使得后面的 `lua_next` 的结果处于不确定的状态。 ### 系统环境 Lua 5.3.2 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 ### 测试用例 ```lua t={} for i = 1, 33 do t[i] = 1;...
mac 不支持?
mac 不支持?
example中只有lua table encode成bson userdata,但要如何从网络接收的内存块解析成bson userdata呢? bson userdata又如何编码成字节流呢?
至少缺少头文件: # include # include 能否优化下? 谢谢。 ps:您是lua圈内的风云大哥吧
Luarocks
Would you mind sending this up to luarocks?