protobuf encode format
来源:互联网 发布:广告喊话软件 编辑:程序博客网 时间:2024/05/20 02:53
protobuf 的编码格式依次为 tag+data
1)tag
tag为可最长32位的可变长度数据,低3位为wire type,例如PB_WT_32BIT,PB_WT_STRING。其余高位为tag值。
2)data
如果wire type为固定长度的数据,数据段即为数据。
如果wire type为可变长度的数据,数据段格式为长度+数据。例如string,bytes,submessage类型或者repeat类型的数据。
0 0
- protobuf encode format
- encode an Url to Uft8 format
- How to encode video in H264 format
- encode
- @encode
- protobuf
- ProtoBuf
- protobuf
- protobuf
- protobuf
- Protobuf
- protobuf
- Protobuf
- protobuf
- protobuf
- protobuf
- protobuf
- protobuf
- Android Lint简介
- 代码行统计
- python 中的dict和list 排序
- 数据结构与算法学习笔记02_1(线性表)
- Java 7之多线程第5篇 - 原子类
- protobuf encode format
- ls命令的20个实用范例
- ZigZag Conversion
- 学习总结-访问权限修饰符,实例成员和类成员,初始化字段
- O(n)时间求字符串的最长回文子串
- Two Sum
- Longest Substring Without Repeating Characters
- Add Two Numbers
- 黑马程序员_java_String