[protobuf] Re: Is there a way to pass C string without triggering construction of string object in C++?

2010-01-08 Thread Vlad
Thanks for fast replay. I understand you matters. You can add mass assignment to your array operations and that would keep you design intact and complete array operation needs. It is already possible to reserve and access entire array but you can only assign one element at a time. On Jan 7, 6:00

Re: [protobuf] Re: Is there a way to pass C string without triggering construction of string object in C++?

2010-01-08 Thread Kenton Varda
On Fri, Jan 8, 2010 at 5:48 AM, Vlad wrote: > You can add mass assignment to your array operations and that would > keep you design intact and complete array operation needs. > It is already possible to reserve and access entire array but you can > only assign one element at a time. > Just use a

[protobuf] Re: Is there a way to pass C string without triggering construction of string object in C++?

2010-01-08 Thread Vlad
Cool Will do. thanks On Jan 8, 12:44 pm, Kenton Varda wrote: > On Fri, Jan 8, 2010 at 5:48 AM, Vlad wrote: > > You can add mass assignment to your array operations and that would > > keep you design intact and complete array operation needs. > > It is already possible to reserve and access entir

[protobuf] Re: Is there a way to pass C string without triggering construction of string object in C++?

2010-01-08 Thread Vlad
Tried trivial object: proto::TestVector tv; tv.mutable_name()->Reserve(length); Strange thing happens: Above code calls memcpy... #callq 0x404e98 even if I do not assign anything. Good side the following was indeed converted to memcpy. for(int i=0; i wrote: > Cool > Will do. > thanks > > On J

[protobuf] Re: Is there a way to pass C string without triggering construction of string object in C++?

2010-01-08 Thread Vlad
Tried trivial object: proto::TestVector tv; tv.mutable_name()->Reserve(length); Strange thing happens: Above code calls memcpy... #callq 0x404e98 even if I do not assign anything. Good side the following was indeed converted to memcpy. for(int i=0; i wrote: > Cool > Will do. > thanks > > On J

[protobuf] Re: Is there a way to pass C string without triggering construction of string object in C++?

2010-01-08 Thread Vlad
Tried trivial object: proto::TestVector tv; tv.mutable_name()->Reserve(length); Strange thing happens: Above code calls memcpy... #callq 0x404e98 even if I do not assign anything. Good side the following was indeed converted to memcpy. for(int i=0; i wrote: > Cool > Will do. > thanks > > On J

[protobuf] 2.3.0 released

2010-01-08 Thread Kenton Varda
I've pushed the final release of Protobuf 2.3.0: http://code.google.com/p/protobuf/downloads/list Documentation updates are still in review but I hope to have them up Monday. 2009-01-08 version 2.3.0: General * Parsers for repeated numeric fields now always accept both packed and unpack