AnotherRedisDesktopManager icon indicating copy to clipboard operation
AnotherRedisDesktopManager copied to clipboard

protobuf 数据不能成功转换查看

Open czd890 opened this issue 2 years ago • 4 comments

hex: \x0a\x04ABCD\x10\xbb\xf1\xf0\xa1\xa71 binary: 00001010000001000100000101000010010000110100010000010000101110111111000111110000101000011010011100110001

1694171032999

找到一个可以查看的 image

czd890 avatar Sep 08 '23 11:09 czd890

导入proto文件可以解析么

qishibo avatar Sep 10 '23 02:09 qishibo

对的, 导入proto也不行, 不确定是不是和第二个字段是long类型, 并且数字比较大的缘故. 似乎和解析使用的lib有关系?

czd890 avatar Sep 11 '23 02:09 czd890

js解析protobuf可能会有一些差异,但我感觉更可能是因为长类型的原因,可能这个库支持的不完善吧,后面看哪个更好换一下。 你可以用你的程序写入一些简单的字段和类型,看Another能正常解析么

qishibo avatar Sep 12 '23 07:09 qishibo

代码(C#, java)里面能正常反序列化

czd890 avatar Sep 13 '23 08:09 czd890