Hi, 

I've got an encoding question about the following proto :

message Property {
  required string key = 1;
  optional string value = 2;
}

message SysDate {
  required uint64 sec = 1;
  required uint32 usec = 2;
}

message BuiltInTest {
  required uint32 bit = 1;
  required uint32 bit_status = 2;
  required SysDate date = 3 ;
  optional Property bit_properties = 16 ;
  required string infos = 17;
}

then, I receive the following message 

08 02 10 01 1A 08 08 EB 80 10 10 83 90 0A
82 01 10 0A A5 6B 65 79 12 07 76 61 6C 75 65
8A 01 05 69 6E 66 6F 73

If I decode the first line, it's ok I got the value for bit, bit_status and 
date
For the second line it's also ok, I got the values for bit_properties (with 
key attribute = "key" and value attribute = "value")
And for the last line, I understand that byte 8A means wire type 2 and tag 
17, byte 05 means a length of 5 but I don't understand the byte 01 ? what 
does it mean ?

Thanks for your help

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to