[protobuf] Re: Issue 492 in protobuf: ByteSize() doesn't return right value
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.
[protobuf] Re: Issue 492 in protobuf: ByteSize() doesn't return right value
Updates: Status: WorkingAsIntended Comment #2 on issue 492 by liuj...@google.com: ByteSize() doesn't return right value http://code.google.com/p/protobuf/issues/detail?id=492 Thanks Oliver for the reply. I think the issue only applies to the protobuf-c project, since there's no std::string in C. I'm not sure if that API provides pointer-length parameter. -- 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.