Comment #1 on issue 492 by ByteSize() doesn't return right value

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, "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:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to