- 1
- 2
- 3
- 4
- 5
protocolbuf, Gooogle 提供的序列化和反序列化工具
资料介绍
Protocol buffers是一个灵活,高效,自动化的结构化数据序列化机制,类似于XML,但是更小,更快,更简单。你可以一次定义你希望你的数据结构,使用工具很方便的生成从各种数据流读写结构化数据的代码,支持多种开发语言。你可以在不重新编译部署程序的情况下更新你的数据结构,支持向前和向后兼容
语法如下:
syntax = "proto3";
option go_package = "user";
option java_package = "com.venusource.protobuf";
message ProtobufUser {
int32 id = 1; string name = 2;
message Phone{ enum PhoneType {
HOME = 0;
WORK = 1;
OTHER = 2;
}
PhoneType phoneType = 1; string phoneNumber = 2;
}
repeated Phone phones = 3;
}protobuf定义详细的语法请到官网自学
部分文件列表
| 文件名 | 大小 |
| ---- | |
| protobuf-3.4.1/ | |
| protobuf-3.4.1/.gitignore | 3KB |
| protobuf-3.4.1/.gitmodules | |
| protobuf-3.4.1/.travis.yml | 3KB |
| protobuf-3.4.1/BUILD | |
| protobuf-3.4.1/CHANGES.txt | |
| protobuf-3.4.1/CONTRIBUTORS.txt | 4KB |
| protobuf-3.4.1/LICENSE | 2KB |
| protobuf-3.4.1/Makefile.am | |
| protobuf-3.4.1/Protobuf.podspec | 2KB |
| ... | |
最新上传
-
21ic下载 打赏310.00元 1天前
用户:jh0355
-
21ic下载 打赏310.00元 1天前
用户:zhengdai
-
21ic下载 打赏310.00元 1天前
用户:gsy幸运
-
21ic下载 打赏230.00元 1天前
用户:小猫做电路
-
21ic下载 打赏210.00元 1天前
用户:w178191520
-
21ic下载 打赏60.00元 1天前
用户:jh03551
-
21ic下载 打赏90.00元 1天前
用户:铁蛋锅
-
21ic下载 打赏80.00元 1天前
用户:xzxbybd
-
21ic下载 打赏60.00元 1天前
用户:kk1957135547
-
21ic下载 打赏60.00元 1天前
用户:w1966891335
-
21ic下载 打赏60.00元 1天前
用户:w993263495
-
21ic下载 打赏60.00元 1天前
用户:sun2152
-
21ic下载 打赏60.00元 1天前
用户:xuzhen1
-
21ic下载 打赏60.00元 1天前
用户:liao6
-
21ic下载 打赏70.00元 1天前
用户:liqiang9090
-
21ic下载 打赏70.00元 1天前
用户:mulanhk
-
21ic下载 打赏20.00元 1天前
用户:x15580286248
-
21ic下载 打赏30.00元 1天前
用户:玉落彼岸
-
21ic下载 打赏5.00元 1天前
用户:hnygpx
-
21ic下载 打赏10.00元 1天前
用户:vikey_zhu
-
21ic下载 打赏5.00元 1天前
用户:fine0406
-
21ic小能手 打赏15.00元 1天前
-
21ic小能手 打赏15.00元 1天前
-
21ic小能手 打赏10.00元 1天前
-
21ic小能手 打赏10.00元 1天前
-
21ic小能手 打赏10.00元 1天前
-
21ic小能手 打赏10.00元 1天前
-
21ic小能手 打赏10.00元 1天前
-
21ic小能手 打赏10.00元 1天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前




全部评论(0)