Hello...

I appreciate the clear documentation on encoding here:
https://developers.google.com/protocol-buffers/docs/encoding

However it doesn't discuss how the key/tag is encoded when the number of 
message types exceeds 5 bits (31). 

Each key in the streamed message is a varint with the value (field_number 
<< 3) | wire_type – in other words, the last three bits of the number store 
the wire type. 

What happens if the message type is 76 for example? That is 0x4c. If the 
data encoding is 000 for a varint then this is just  0x0260. Is that how it 
is represented in the data stream? Or is it encoded like a varint which I 
*think* is 0xe004?

Appreciate any information on this.

Thanks,

Ed Mazurek

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/0f270391-fe31-4d0d-a736-874c0520a147n%40googlegroups.com.

Reply via email to