- 博客(2)
- 收藏
- 关注
转载 How to use list from sys/queue.h?
LIST_ENTRY creates fields to put into your structure that are suitable for linking the elements, so you do not have to concern yourself with the specifics of those pointers. struct foo { int a, b
2014-02-06 19:14:30 1273
原创 protobuf encode format
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,s
2014-02-03 10:59:59 2378
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人