That method will serialize the message into the provided array in the data argument. It will not really generate a C-style string, because the output will not be delimited by a null character. What are you trying to do exactly?
On Mon, Sep 17, 2018 at 12:18 PM Oliver Wang <[email protected]> wrote: > hi, > > It wasn't clear to me, if this following call will generate a c-string? if > not, is there a way to do that? > > > https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message_lite?csw=1#MessageLite.SerializeToArray.details > > thanks > > oliver > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
