摘要:
一直很好奇protobuf结构怎么修改才会导致无法向前向后兼容,上google查了一下,为了保证向前以及向后的兼容性:修改.proto文件必须依据一下四个原则 you must not change the tag numbers of any existing fields. you must n 阅读全文
摘要:
这次考试很多题考的很基础的东西,在这里记录一下 1、32位系统中各个类型的字节数 char 1字节 short 2字节(unsigned 同) int 4字节(unsigned 同) long 4字节 long long 8字节 float 4字节 double 8字节 *(指针) 4字节 2、64 阅读全文