On Thu, Sep 10, 2009 at 12:51 AM, SuKai <sukai090...@gmail.com> wrote:
> In this page > http://code.google.com/intl/zh-CN/apis/protocolbuffers/docs/cpptutorial.html, > "Parsing and Serialization" section, > > * |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 container. > * |bool ParseFromString(const string& data);|: parses a message from > the given string. > > > I cannot find these method in V2.2. > They are defined on the super-class google::protobuf::MessageLite. http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google.protobuf.message_lite.html#MessageLite Not all methods of protocol message objects are defined in the generated code. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---