softwareyangsong
softwareyangsong
我也是报这个错:decode context error go发过来的数据:\n\x03Tom\x10\x1e\x1a\x05hello\x1a\x05world\x1a\x01!, 其字节数组为:10,3,84,111,109,16,30,26,5,104,101,108,108,111,26,5,119,111,114,108,100,26,1,33 proto结构: message Lua { string Name = 1; int32 Age = 2; repeated string Arr = 3; } Lua里解析代码: function OnData(data,_url,_type,_tag,length) local byteBuffer = ByteBuffer.New(data);...
搞定了,原来是protobuf.lua版本问题
@langresser 请问你说的那个兼容版本是哪一个呢?是luapbintf 吗?