As you can see, each field in the message definition has a unique numbered tag. These tags are used to identify your fields in the message binary format, and should not be changed once your message type is in use. Note that tags with values in the range 1 through 15 take one byte to encode. Tags in the range 16 through 2047 take two bytes. So you should reserve the tags 1 through 15 for very frequently occurring message elements. Remember to leave some room for frequently occurring elements that might be added in the future. 

解决方案 »

  1.   

    正如你可以看到的,该消息定义的每一个域(field)都有一个唯一的数字标签。这些标签是用来标记你的二进制消息格式的域,且一旦你的消息类型已被使用这些标签不应该被改变。注意,在1~15范围内的有值标签携带一个字节用以解码,在16~2047范围内的标签携带2个字节。因此你应该为每个频繁发生的消息预留1~15的标签。记住留下一些空间给频繁发生的元素,以便添加