使用 exprotobuf 处理 Google 协议缓冲区
Use exprotobuf to deal with Google Protocol Buffers
任何人都熟悉 exprobuf ? I've got an incorrect encoding result, here is the detail issue。
Expect to got <08 96 01>
, but got <8, 150, 1>
instead. Did I missed something?
他们是一样的。一种是十六进制,一种是十进制。十六进制 96 是十进制的 150。用十六进制表示二进制输出很常见,因为它简洁(每个字节最多 2 个字符)并且不区分大小写 - 因此大多数二进制编辑器/查看器都使用十六进制。
任何人都熟悉 exprobuf ? I've got an incorrect encoding result, here is the detail issue。
Expect to got
<08 96 01>
, but got<8, 150, 1>
instead. Did I missed something?
他们是一样的。一种是十六进制,一种是十进制。十六进制 96 是十进制的 150。用十六进制表示二进制输出很常见,因为它简洁(每个字节最多 2 个字符)并且不区分大小写 - 因此大多数二进制编辑器/查看器都使用十六进制。