Comment #1 on issue 492 by oliver.j...@gmail.com: ByteSize() doesn't return right value
http://code.google.com/p/protobuf/issues/detail?id=492

You're using the setter that expects to be given a NUL-terminated C-style string, which is not the case in your code.

Use one of the setters that takes pointer-and-length or a std::string if your data is not a NUL-terminated C-style string.

See https://developers.google.com/protocol-buffers/docs/reference/cpp-generated, "Singular String Fields"

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to