在 2016年9月26日星期一 UTC-4下午2:57:14,job4c...@gmail.com写道:
>
> Will Google Protocol Buffer ensure this? This is a very important I think.
>


Notes: My message only uses fixed32 and all fields are initialized(values 
might vary)

Message test_msg
{
optional fixed32 field1 = 1;
optional fixed32 field2 = 2;
}

test_msg msg;
msg.set_field1(0);
msg.set_field2(1);

int size = msg.ByteSize(); // will this be a fixed length even if I upgrade 
Google Protocol Buffer? 

-- 
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 https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to