cloudwu / sproto

Yet another protocol library like google protocol buffers , but simple and fast.
MIT License
942 stars 253 forks source link

readme中 fn 的问题 #82

Closed sendysucc closed 5 years ago

sendysucc commented 5 years ago

image

请问一下,这个fn 为啥是4,不是3呢?

cloudwu commented 5 years ago
04 00 (fn = 4)
00 00 (id = 0, value in data part)
52 00 (id = 1, value = 40)
01 00 (skip id = 2)
00 00 (id = 3, value in data part)

4 项,包括 skip id = 2 这一项。