why*_*why 5 protocol-buffers protobuf-net
package tutorial;
message Person {
required string name = 1;
required int32 id = 2;
optional string email = 3;
}
Run Code Online (Sandbox Code Playgroud)
“1”、“2”、“3”是什么意思?
小智 13
消息定义中的每个字段都有一个唯一的编号标签。这些标签用于标识消息二进制格式中的字段,一旦使用消息类型,就不应更改。
| 归档时间: |
|
| 查看次数: |
1574 次 |
| 最近记录: |