bool SerializeToString(string* output) const;: serializes the message
and stores the bytes in the given string. Note that the bytes are
binary, not text; we only use the string class as a convenient

string output store binary data, and whether has "\0" in output
such as if i want to use output->size() or strlen(output->c_str())
get its length.
i see many "\n" in binary data, but not sure it whether has "\0",
since if has "\0" may have some problem for string to store it.

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to