serialization - Store a single byte in a protobuf message -


what data type use store single byte in protocol buffer message? seeing list @ https://developers.google.com/protocol-buffers/docs/proto#scalar seems 1 of *int32 types best fit. there more efficient way store single byte?

well need understand take @ least 2 bytes anyway - 1 tag , 1 data. (the tag take more space if field number high.) if use uint32, take 1 byte data values 127, , 2 bytes larger.

i don't believe there's more efficient that.


Comments