Re: [protobuf] Re: Placing byte buffer into string
On Feb 14, 2010, at 17:23 , SyRenity wrote: Actually, answering myself it seems to be as simple as: sData.assign(buffer, size); //Where size is the full buffer size Yes, that works. See the following for more help: http://www.sgi.com/tech/stl/basic_string.html Evan -- Evan Jones http://evanjones.ca/ -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to proto...@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.
[protobuf] Re: Placing byte buffer into string
Thanks. On Feb 15, 12:25 am, Evan Jones ev...@mit.edu wrote: On Feb 14, 2010, at 17:23 , SyRenity wrote: Actually, answering myself it seems to be as simple as: sData.assign(buffer, size); //Where size is the full buffer size Yes, that works. See the following for more help: http://www.sgi.com/tech/stl/basic_string.html Evan -- Evan Joneshttp://evanjones.ca/ -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to proto...@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.