Zhonghui

每个不曾起舞的日子,都是对生命的辜负

User Tools

Site Tools


程序:protobuf:field_numbers

Field numbers


int id = 1; // 这里的1就是Field numbers

Field numbers are an important part of Protobuf. They're used to identify fields in the binary encoded data, which means they can't change from version to version of your service. The advantage is that backward compatibility and forward compatibility are possible.

我的理解:为了兼容性

/var/www/DokuWikiStick/dokuwiki/data/pages/程序/protobuf/field_numbers.txt · Last modified: 2023/02/09 15:59 by zh