Re: C++ SerializeToArray

2008-12-17 Thread Kenton Varda
. > > > > > > . > > > > > >bplMessage.SerializeToArray(mess,bplMessage.ByteSize()); > > > > > > > > //what I am using to detect trailing bytes > > > > > >for(int i =0; i< bplMessage.ByteSize();i++) { &

Re: C++ SerializeToArray

2008-12-17 Thread Ryan
::cout << (int) mess[i] << std::endl; > > > > >     } > > > > > > On Dec 17, 8:32 am, Kenton Varda wrote: > > > > > > Hi Ryan, > > > > > > What does your code look like that calls SerializeToArray()?  It >

Re: C++ SerializeToArray

2008-12-17 Thread Kenton Varda
Array()? It > should > > > > be > > > > > something like: > > > > > > > int size = message.ByteSize(); > > > > > char* array = new char[size]; > > > > > message.SerializeToArray(array, size); > > > &g

Re: C++ SerializeToArray

2008-12-17 Thread Ryan
> > > be > > > > something like: > > > > >   int size = message.ByteSize(); > > > >   char* array = new char[size]; > > > >   message.SerializeToArray(array, size); > > > > > On Tue, Dec 16, 2008 at 8:13 PM, Ryan wrote: >

Re: C++ SerializeToArray

2008-12-17 Thread Ryan
t;   message.SerializeToArray(array, size); > > > > On Tue, Dec 16, 2008 at 8:13 PM, Ryan wrote: > > > > > I have been working with a Group Communication System and Protocol > > > > Buffers. > > > > > I have an issue where the C++ SerializeToAr

Re: C++ SerializeToArray

2008-12-17 Thread Kenton Varda
PM, Ryan wrote: > > > > > I have been working with a Group Communication System and Protocol > > > Buffers. > > > > > I have an issue where the C++ SerializeToArray call on one of my > > > messages is occasionally appending Bytes {1,0,0,0,0,0,0,0,0} to th

Re: C++ SerializeToArray

2008-12-17 Thread Ryan
size); > > On Tue, Dec 16, 2008 at 8:13 PM, Ryan wrote: > > > I have been working with a Group Communication System and Protocol > > Buffers. > > > I have an issue where the C++ SerializeToArray call on one of my > > messages is occasionally appending Bytes {1,0,

Re: C++ SerializeToArray

2008-12-17 Thread Kenton Varda
Group Communication System and Protocol > Buffers. > > I have an issue where the C++ SerializeToArray call on one of my > messages is occasionally appending Bytes {1,0,0,0,0,0,0,0,0} to the > end of the returned character array? > > Any ideas on what might be causing this? I can Marsh

Re: C++ SerializeToArray

2008-12-17 Thread Caleb
Ryan wrote: > I have an issue where the C++ SerializeToArray call on one of my > messages is occasionally appending Bytes {1,0,0,0,0,0,0,0,0} to the > end of the returned character array? Are you sure you have sized your array correctly (e.g. maybe thats just garbage at the end of

C++ SerializeToArray

2008-12-16 Thread Ryan
I have been working with a Group Communication System and Protocol Buffers. I have an issue where the C++ SerializeToArray call on one of my messages is occasionally appending Bytes {1,0,0,0,0,0,0,0,0} to the end of the returned character array? Any ideas on what might be causing this? I can