Ubuntu下使用Protocol Buffer(简写:protobuf) (1.2编码)

1.2protobuf编码规则 1.2.1先了解varints编码 以300为例:1010 1100 0000 0010,这串数字是怎么来的呢? 1.首先删除每个字节的msb位,得到每7位为一组的数字: 1010 1100 0000 0010   010 1100    000 0010 2.反转两组7位,再相连++ 010 1100 000 0010 000 0010 ++ 010 1100 (
相关文章
相关标签/搜索